From feb02e7857a1b631f1853f34c395dd537b55f7fa Mon Sep 17 00:00:00 2001 From: Kees Hink Date: Fri, 20 Oct 2017 15:51:44 +0100 Subject: [PATCH] Use full width (drop right column) if usage is off --- .../templates/wagtailsnippets/snippets/edit.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/wagtail/wagtailsnippets/templates/wagtailsnippets/snippets/edit.html b/wagtail/wagtailsnippets/templates/wagtailsnippets/snippets/edit.html index 881d45f5ef..0b47e8405b 100644 --- a/wagtail/wagtailsnippets/templates/wagtailsnippets/snippets/edit.html +++ b/wagtail/wagtailsnippets/templates/wagtailsnippets/snippets/edit.html @@ -7,25 +7,28 @@
+ {% usage_count_enabled as uc_enabled %} + {% if uc_enabled %}
+ {% else %} +
+ {% endif %}
{% csrf_token %} {{ edit_handler.render_form_content }}
+ {% if uc_enabled %}
- {% usage_count_enabled as uc_enabled %} - {% if uc_enabled %}
{% trans "Usage" %}
{% blocktrans count usage_count=instance.get_usage.count %}Used {{ usage_count }} time{% plural %}Used {{ usage_count }} times{% endblocktrans %}
- {% endif %}
- + {% endif %}