Ralfp 12 лет назад
Родитель
Сommit
c2119b9d39

+ 0 - 2
templates/admin/overview/stats/form.html

@@ -1,7 +1,5 @@
 {% extends "admin/overview/stats/layout.html" %}
 {% load i18n %}
-
-{% import "admin/messages.html" as messages_theme %}
 {% import "_forms.html" as form_theme with context %}
 
 {% block action %}<div class="row">

+ 1 - 2
templates/admin/overview/stats/graph.html

@@ -1,8 +1,7 @@
 {% extends "admin/overview/stats/form.html" %}
 {% load i18n %}
-
-{% import "admin/messages.html" as messages_theme %}
 {% import "_forms.html" as form_theme with context %}
+{% from "admin/macros.html" import page_title %}
 {% from "admin/overview/stats/plot.html" import draw_plot_tooltips, draw_plot with context %}
 
 {% block title %}{{ page_title(title=title, parent=_('Stats')) }}{% endblock %}

+ 3 - 4
templates/admin/overview/stats/layout.html

@@ -1,15 +1,14 @@
 {% extends "admin/layout.html" %}
 {% load i18n %}
-{% from "admin/macros.html" import page_title %}
-{% import "admin/messages.html" as messages_theme %}
+{% import "admin/macros.html" as macros with context %}
 
-{% block title %}{{ page_title(title=_('Stats')) }}{% endblock %}
+{% block title %}{{ macros.page_title(title=_('Stats')) }}{% endblock %}
 
 {% block content %}
 <div class="page-header">
   <h1>{% trans %}Stats{% endtrans %} <small>{% trans %}Create Statistics Reports{% endtrans %}</small></h1>
 </div>{% if message %}
-{{ messages_theme.draw_message(message, 'alert-form') }}
+{{ macros.draw_message(message, 'alert-form') }}
 {% endif %}
 {% block action %}{% endblock %}
 {% endblock %}