base.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {% load i18n %}
  2. <style type="text/css">
  3. @media print { #djDebug {display:none;}}
  4. {{ css }}
  5. </style>
  6. <script type="text/javascript">{{ js }}</script>
  7. <div id="djDebug" style="display:none;">
  8. <div style="display:none;" id="djDebugToolbar">
  9. <ul id="djDebugPanelList">
  10. {% if panels %}
  11. <li><a id="djHideToolBarButton" href="#" title="{% trans "Hide Toolbar" %}">{% trans "Hide" %} &raquo;</a></li>
  12. {% else %}
  13. <li id="djDebugButton">DEBUG</li>
  14. {% endif %}
  15. {% for panel in panels %}
  16. <li class="djDebugPanelButton">
  17. {% if panel.has_content %}
  18. <a href="{{ panel.url|default:"#" }}" title="{{ panel.title }}" class="{{ panel.dom_id }}">
  19. {% else %}
  20. <div class="contentless">
  21. {% endif %}
  22. {{ panel.nav_title }}
  23. {% with panel.nav_subtitle as subtitle %}
  24. {% if subtitle %}<br /><small>{{ subtitle }}</small>{% endif %}
  25. {% endwith %}
  26. {% if panel.has_content %}
  27. </a>
  28. {% else %}
  29. </div>
  30. {% endif %}
  31. </li>
  32. {% endfor %}
  33. </ul>
  34. </div>
  35. <div style="display:none;" id="djDebugToolbarHandle">
  36. <a title="{% trans "Show Toolbar" %}" id="djShowToolBarButton" href="#">&laquo;</a>
  37. </div>
  38. {% for panel in panels %}
  39. {% if panel.has_content %}
  40. <div id="{{ panel.dom_id }}" class="panelContent">
  41. <div class="djDebugPanelTitle">
  42. <a href="" class="djDebugClose">{% trans "Close" %}</a>
  43. <h3>{{ panel.title|safe }}</h3>
  44. </div>
  45. <div class="djDebugPanelContent">
  46. <div class="scroll">
  47. {{ panel.content|safe }}
  48. </div>
  49. </div>
  50. </div>
  51. {% endif %}
  52. {% endfor %}
  53. <div id="djDebugWindow" class="panelContent"></div>
  54. </div>