navigation.html 1.1 KB

123456789101112131415161718192021222324252627
  1. {% load i18n static %}
  2. <div id="user-tools">
  3. <a href="{% url '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="/api">API</a> |
  9. <a href="{% url 'public-index' %}">Public</a> |
  10. <a href="/admin/">Admin</a>
  11. &nbsp; &nbsp;
  12. {% if user.is_authenticated %}
  13. {% block welcome-msg %}
  14. {% trans 'User' %}
  15. <strong>{% firstof user.get_short_name user.get_username %}</strong> &nbsp; &nbsp;
  16. {% endblock %}
  17. {% block userlinks %}
  18. {% if user.has_usable_password %}
  19. <a href="{% url 'admin:password_change' %}" title="Change your account password">Account</a> /
  20. {% endif %}
  21. <a href="{% url 'admin:logout' %}">{% trans 'Log out' %}</a>
  22. {% endblock %}
  23. {% else %}
  24. <a href="{% url 'admin:login' %}">{% trans 'Log in' %}</a>
  25. {% endif %}
  26. </div>