From 69365620df2ee495b0144c787feed934c6ce720c Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Wed, 17 Oct 2018 17:37:37 +0200 Subject: [PATCH] Simplify template conditionals --- src/wiki/templates/wiki/permission_denied.html | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/wiki/templates/wiki/permission_denied.html b/src/wiki/templates/wiki/permission_denied.html index 50fa3506..06afbbda 100644 --- a/src/wiki/templates/wiki/permission_denied.html +++ b/src/wiki/templates/wiki/permission_denied.html @@ -17,20 +17,16 @@

{% endif %} - {% if not read_denied %}

+ {% if not read_denied %} {% trans "Back to article" %} -

- {% else %} -

- {% if urlpath.parent %} + {% elif urlpath.parent %} {% trans "Back to article" %} - {% endif %} -

{% endif %} +

{% endblock %} -- 2.45.2