app_index.html 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {% extends "admin/base_site.html" %}
  2. {% load i18n static jet_dashboard_tags %}
  3. {% block extrastyle %}
  4. {{ block.super }}
  5. <link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}" />
  6. {% for css in dashboard.media.css %}
  7. <link href="{% static css %}" rel="stylesheet" />
  8. {% endfor %}
  9. {% endblock %}
  10. {% block extrahead %}
  11. {{ block.super }}
  12. {% for js in dashboard.media.js %}
  13. <script src="{% static js %}"></script>
  14. {% endfor %}
  15. {% endblock %}
  16. {% block coltype %}colMS{% endblock %}
  17. {% block bodyclass %}{{ block.super }} app-{{ app_label }}{% endblock %}
  18. {% if not is_popup %}
  19. {% block breadcrumbs %}
  20. <div class="breadcrumbs">
  21. <a href="{% url 'admin:index' %}">{% trans 'Home' %}</a>
  22. &rsaquo;
  23. {% for app in app_list %}
  24. {% if app.name != app.app_label|capfirst|escape %}{{ app.name }}{% else %}{% trans app.app_label as app_label %}{{ app_label|capfirst|escape }}{% endif %}
  25. {% endfor %}
  26. </div>
  27. {% endblock %}
  28. {% endif %}
  29. {% block sidebar %}{% endblock %}
  30. {% block usertools %}
  31. {% get_dashboard 'app_index' as dashboard %}
  32. {{ dashboard.render_tools }}
  33. {{ block.super }}
  34. {% endblock %}
  35. {% block content %}
  36. {% get_dashboard 'app_index' as dashboard %}
  37. {{ dashboard.render }}
  38. {% endblock %}