Merged in andybak/django-admin-tools/andybak/add-some-blocks-to-facilitate-template-i-1400407170114 (pull request #29)
Add some blocks to facilitate template inheritance
This commit is contained in:
commit
524e44b595
|
@ -1,5 +1,7 @@
|
|||
{% 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">
|
||||
|
@ -47,11 +49,15 @@
|
|||
});
|
||||
});
|
||||
</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 %}
|
||||
|
@ -66,7 +72,11 @@
|
|||
</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 %}
|
Loading…
Reference in New Issue