Simplify template conditionals
1 files changed, 3 insertions(+), 7 deletions(-) M src/wiki/templates/wiki/permission_denied.html
M src/wiki/templates/wiki/permission_denied.html => src/wiki/templates/wiki/permission_denied.html +3 -7
@@ 17,20 17,16 @@ </p> {% endif %} {% if not read_denied %} <p> {% if not read_denied %} <a href="{% url 'wiki:get' article_id=article.id path=urlpath.path %}" class="btn btn-default"> {% trans "Back to article" %} </a> </p> {% else %} <p> {% if urlpath.parent %} {% elif urlpath.parent %} <a href="{% url 'wiki:get' path=urlpath.parent.path %}" class="btn btn-default"> {% trans "Back to article" %} </a> {% endif %} </p> {% endif %} </p> {% endblock %}