Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

template_tag_index.html 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {% extends "admin/base_site.html" %}
  2. {% load i18n %}
  3. {% block coltype %}colSM{% endblock %}
  4. {% block breadcrumbs %}
  5. <div class="breadcrumbs">
  6. <a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
  7. &rsaquo; <a href="{% url 'django-admindocs-docroot' %}">{% trans 'Documentation' %}</a>
  8. &rsaquo; {% trans 'Tags' %}
  9. </div>
  10. {% endblock %}
  11. {% block title %}{% trans 'Template tags' %}{% endblock %}
  12. {% block content %}
  13. <h1>{% trans 'Template tag documentation' %}</h1>
  14. <div id="content-main">
  15. {% regroup tags|dictsort:"library" by library as tag_libraries %}
  16. {% for library in tag_libraries %}
  17. <div class="module">
  18. <h2>{% firstof library.grouper _("Built-in tags") %}</h2>
  19. {% if library.grouper %}<p class="small quiet">{% blocktrans with code="{"|add:"% load "|add:library.grouper|add:" %"|add:"}" %}To use these tags, put <code>{{ code }}</code> in your template before using the tag.{% endblocktrans %}</p><hr>{% endif %}
  20. {% for tag in library.list|dictsort:"name" %}
  21. <h3 id="{{ library.grouper|default:"built_in" }}-{{ tag.name }}">{{ tag.name }}</h3>
  22. <h4>{{ tag.title|striptags }}</h4>
  23. {{ tag.body }}
  24. {% if not forloop.last %}<hr>{% endif %}
  25. {% endfor %}
  26. </div>
  27. {% endfor %}
  28. </div>
  29. {% endblock %}
  30. {% block sidebar %}
  31. <div id="content-related">
  32. {% regroup tags|dictsort:"library" by library as tag_libraries %}
  33. {% for library in tag_libraries %}
  34. <div class="module">
  35. <h2>{% firstof library.grouper _("Built-in tags") %}</h2>
  36. <ul>
  37. {% for tag in library.list|dictsort:"name" %}
  38. <li><a href="#{{ library.grouper|default:"built_in" }}-{{ tag.name }}">{{ tag.name }}</a></li>
  39. {% endfor %}
  40. </ul>
  41. </div>
  42. {% endfor %}
  43. </div>
  44. {% endblock %}