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 %}