Skip to content

Commit 45cb910

Browse files
fixed ui
1 parent 813e997 commit 45cb910

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

application/pay_parking/templates/admin/change_list.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,13 @@ <h3><a href="{{ cl.clear_all_filters_qs }}">&#10006; {% translate 'Clear all fil
5656
{% endif %}
5757
{% endblock %}
5858

59+
{% block object-tools-items %}
60+
{% if has_add_permission and has_customisable_statistics %}
61+
<li>
62+
<a href="{% url cl.opts|admin_urlname:'customisable_statistics' %}" class="viewlink">
63+
Кастомизируемая статистика
64+
</a>
65+
</li>
66+
{% endif %}
67+
{{ block.super }}
68+
{% endblock %}

application/pay_parking/templates/admin/customisable_statistics.html

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,3 @@
5151
&rsaquo; {{ title|capfirst }}
5252
</div>
5353
{% endblock %}
54-
55-
{% block object-tools-items %}
56-
{% if request.resolver_match.app_name == 'admin' %}
57-
<li>
58-
<a href="{% url cl.opts|admin_urlname:'customisable_statistics' %}" class="viewlink">
59-
Кастомизируемая статистика
60-
</a>
61-
</li>
62-
{% endif %}
63-
{{ block.super }}
64-
{% endblock %}

0 commit comments

Comments
 (0)