navigation.html 1.0 KB

1234567891011121314151617181920212223242526
  1. {% load i18n static %}
  2. <div id="user-tools">
  3. <a href="{% url 'admin:Add' %}">Add ➕</a> &nbsp; &nbsp;
  4. <a href="{% url 'Home' %}">Snapshots</a> |
  5. <a href="/admin/core/tag/">Tags</a> |
  6. <a href="/admin/core/archiveresult/?o=-1">Log</a> &nbsp; &nbsp;
  7. <a href="{% url 'Docs' %}" target="_blank" rel="noopener noreferrer">Docs</a> |
  8. <a href="{% url 'public-index' %}">Public</a> |
  9. <a href="/admin/">Admin</a>
  10. &nbsp; &nbsp;
  11. {% if user.is_authenticated %}
  12. {% block welcome-msg %}
  13. {% trans 'User' %}
  14. <strong>{% firstof user.get_short_name user.get_username %}</strong> &nbsp; &nbsp;
  15. {% endblock %}
  16. {% block userlinks %}
  17. {% if user.has_usable_password %}
  18. <a href="{% url 'admin:password_change' %}">Account</a> /
  19. {% endif %}
  20. <a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>
  21. {% endblock %}
  22. {% else %}
  23. <a href="{% url 'admin:login' %}">{% trans 'Log in' %}</a>
  24. {% endif %}
  25. </div>