fix location of {{ block.super }}

Fix: extra_js in snippets type_index `{{ block.super }}` should be outside script tags.
All other locations of block.super are outside of script tags
pull/2691/merge
LB (Ben Johnston) 2017-02-14 12:51:29 +07:00 zatwierdzone przez Matt Westcott
rodzic 5d706d2542
commit 5aa8e00d77
4 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -9,6 +9,7 @@ Changelog
* Added a `submit_buttons` block to login template (Gagaro)
* Fix: Marked 'Date from' / 'Date to' strings in wagtailforms for translation (Vorlif)
* Fix: Unreliable preview is now reliable by always opening in a new window (Kjartan Sverrisson)
* Fix: Fixed placement of `{{ block.super }}` in `snippets/type_index.html` (LB (Ben Johnston))
1.9 (xx.xx.xxxx) - IN DEVELOPMENT

Wyświetl plik

@ -212,6 +212,7 @@ Contributors
* Alasdair Nicol
* Vorlif
* Kjartan Sverrisson
* LB (Ben Johnston)
Translators
===========

Wyświetl plik

@ -23,6 +23,7 @@ Bug fixes
* Marked 'Date from' / 'Date to' strings in wagtailforms for translation (Vorlif)
* Unreliable preview is now reliable by always opening in a new window (Kjartan Sverrisson)
* Fixed placement of ``{{ block.super }}`` in ``snippets/type_index.html`` (LB (Ben Johnston))
Upgrade considerations

Wyświetl plik

@ -3,8 +3,8 @@
{% block titletag %}{% blocktrans with snippet_type_name_plural=model_opts.verbose_name_plural|capfirst %}Snippets {{ snippet_type_name_plural }}{% endblocktrans %}{% endblock %}
{% block extra_js %}
{{ block.super }}
<script>
{{ block.super }}
window.headerSearch = {
url: "{% url 'wagtailsnippets:list' model_opts.app_label model_opts.model_name %}",
termInput: "#id_q",