diff --git a/core/templates/core/_item.html b/core/templates/core/_item.html index 7139a68..d5d49dd 100644 --- a/core/templates/core/_item.html +++ b/core/templates/core/_item.html @@ -21,7 +21,7 @@ {% if item.attachments.all %}
{% trans "Attachments:" %} {% for a in item.attachments.all %}{{ a.file.name }} {% endfor %}
- {% for a in item.attachments.all %}{% if a.file.name|is_image and not a|is_embedded:item %}{{ a.file.name }}{% endif %}{% endfor %} + {% for a in item.attachments.all %}{% if a.file.name|is_image and not a|is_embedded:item %}{% endif %}{% endfor %}
{% endif %} diff --git a/core/templates/core/base.html b/core/templates/core/base.html index 3a111c2..9a168b5 100644 --- a/core/templates/core/base.html +++ b/core/templates/core/base.html @@ -37,6 +37,10 @@ {% block toolbar_filter %}{% endblock %}
{% for message in messages %}
{{ message }}
{% endfor %}{% block content %}{% endblock %}
+ {% if user.is_authenticated and request.resolver_match.url_name == 'index' %}{% endif %}