Skip to content

Commit

Permalink
fixes saved documents links
Browse files Browse the repository at this point in the history
  • Loading branch information
actlikewill committed Sep 10, 2024
1 parent ecf8d0a commit c3aba8d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions peachjam/templates/peachjam/_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,19 @@
</a>
<ul class="dropdown-menu">
<li>
{% if user.is_superuser %}
{% if user.is_staff %}
<a class="dropdown-item" href="{% url 'admin:index' %}">{% trans 'Admin' %}</a>
{% endif %}
{% if PEACHJAM_SETTINGS.allow_save_documents %}
<a class="dropdown-item" href="{% url 'folder_list' %}">{% trans 'Saved documents' %}</a>
{% endif %}
<a class="dropdown-item" href="{% url 'account_logout' %}">{% trans 'Logout' %}</a>
<a class="dropdown-item" href="{% url 'folder_list' %}">{% trans 'Saved documents' %}</a>
</li>
</ul>
</li>
{% endblock %}
</ul>
{% else %}
{% elif PEACHJAM_SETTINGS.allow_save_documents %}
<a class="btn btn-primary ms-3" href="{% url 'account_login' %}">Log in</a>
{% endif %}
{% include 'peachjam/_set_language.html' %}
Expand Down

0 comments on commit c3aba8d

Please sign in to comment.