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.

base.html 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. {% load i18n %}{% load static %}
  2. <link rel="stylesheet" href="{% static 'debug_toolbar/css/print.css' %}" type="text/css" media="print">
  3. <link rel="stylesheet" href="{% static 'debug_toolbar/css/toolbar.css' %}" type="text/css">
  4. <script src="{% static 'debug_toolbar/js/toolbar.js' %}"></script>
  5. <div id="djDebug" class="djdt-hidden" dir="ltr"
  6. {% if toolbar.store_id %}
  7. data-store-id="{{ toolbar.store_id }}"
  8. data-render-panel-url="{% url 'djdt:render_panel' %}"
  9. {% endif %}
  10. {{ toolbar.config.ROOT_TAG_EXTRA_ATTRS|safe }}>
  11. <div class="djdt-hidden" id="djDebugToolbar">
  12. <ul id="djDebugPanelList">
  13. {% if toolbar.panels %}
  14. <li><a id="djHideToolBarButton" href="#" title="{% trans "Hide toolbar" %}">{% trans "Hide" %} &#187;</a></li>
  15. {% else %}
  16. <li id="djDebugButton">DEBUG</li>
  17. {% endif %}
  18. {% for panel in toolbar.panels %}
  19. <li class="djDebugPanelButton">
  20. <input type="checkbox" data-cookie="djdt{{ panel.panel_id }}" {% if panel.enabled %}checked title="{% trans "Disable for next and successive requests" %}"{% else %}title="{% trans "Enable for next and successive requests" %}"{% endif %}>
  21. {% if panel.has_content and panel.enabled %}
  22. <a href="#" title="{{ panel.title }}" class="{{ panel.panel_id }}">
  23. {% else %}
  24. <div class="djdt-contentless{% if not panel.enabled %} djdt-disabled{% endif %}">
  25. {% endif %}
  26. {{ panel.nav_title }}
  27. {% if panel.enabled %}
  28. {% with panel.nav_subtitle as subtitle %}
  29. {% if subtitle %}<br><small>{{ subtitle }}</small>{% endif %}
  30. {% endwith %}
  31. {% endif %}
  32. {% if panel.has_content and panel.enabled %}
  33. </a>
  34. {% else %}
  35. </div>
  36. {% endif %}
  37. </li>
  38. {% endfor %}
  39. </ul>
  40. </div>
  41. <div class="djdt-hidden" id="djDebugToolbarHandle">
  42. <span title="{% trans "Show toolbar" %}" id="djShowToolBarButton">&#171;</span>
  43. </div>
  44. {% for panel in toolbar.panels %}
  45. {% if panel.has_content and panel.enabled %}
  46. <div id="{{ panel.panel_id }}" class="djdt-panelContent">
  47. <div class="djDebugPanelTitle">
  48. <a href="" class="djDebugClose"></a>
  49. <h3>{{ panel.title|safe }}</h3>
  50. </div>
  51. <div class="djDebugPanelContent">
  52. {% if toolbar.store_id %}
  53. <img src="{% static 'debug_toolbar/img/ajax-loader.gif' %}" alt="loading" class="djdt-loader">
  54. <div class="djdt-scroll"></div>
  55. {% else %}
  56. <div class="djdt-scroll">{{ panel.content }}</div>
  57. {% endif %}
  58. </div>
  59. </div>
  60. {% endif %}
  61. {% endfor %}
  62. <div id="djDebugWindow" class="djdt-panelContent"></div>
  63. </div>