Commits

andybak committed 2bbc41f

Add some blocks to facilitate template inheritance

  • Participants
  • Parent commits 50fd97a
  • Branches andybak/add-some-blocks-to-facilitate-template-i-1400407170114

Comments (0)

Files changed (1)

File admin_tools/dashboard/templates/admin_tools/dashboard/dashboard.html

 {% load i18n admin_tools_dashboard_tags %}
 {% load url from future %}
+
+{% block dashboard_scripts %}
 <script type="text/javascript" src="{{ media_url }}/admin_tools/js/utils.js"></script>
 
 <script type="text/javascript" charset="utf-8">
         });
     });
 </script>
+{% endblock %}
 
+{% block dashboard_title %}
 {% if dashboard.title %}
 <h1 class="dashboard-title">{{ dashboard.title }}</h1>
 {% endif %}
+{% endblock %}
 
+{% block dashboard_panel %}
 <div id="dashboard-panel">
     <h3><a href="#">{% trans "Modules" %}</a></h3>
     {% if has_disabled_modules %}
     </ul>
     {% endif %}
 </div>
+{% endblock %}
+
+{% block dashboard_container %}
 <div id="{{ dashboard.get_id }}" class="dashboard-container">
     {% for module in dashboard.children %}
 {% admin_tools_render_dashboard_module module %}{% endfor %}
 </div>
+{% endblock %}