diff --git a/docs/_templates/layout.html b/docs/_templates/layout.html index 44881ff3df..2abf5be9a5 100644 --- a/docs/_templates/layout.html +++ b/docs/_templates/layout.html @@ -4,83 +4,83 @@ {% set docsearch_base = 'https://cdn.jsdelivr.net/npm/docsearch.js@' ~ docsearch_version ~ '/dist/cdn/' %} {% block extrahead %} - - - + + + {% endblock %} {% block search %} - - - + + + docSearchReady(); + {% endblock %} diff --git a/docs/_templates/search.html b/docs/_templates/search.html index b49165fc14..9349bc9514 100644 --- a/docs/_templates/search.html +++ b/docs/_templates/search.html @@ -2,100 +2,100 @@ {% set title = _('Search') %} {% block body %} - + -
-
+
+
{% endblock %} {% block footer %} -{{ super() }} - + window.addEventListener('DOMContentLoaded', runSearchPageSearch) + {% endblock %} diff --git a/docs/_templates/searchbox.html b/docs/_templates/searchbox.html index cea830ffbd..9dd7fc4280 100644 --- a/docs/_templates/searchbox.html +++ b/docs/_templates/searchbox.html @@ -1,8 +1,8 @@ {%- if builder != "singlehtml" %} - + {%- endif %} diff --git a/wagtail/admin/templates/wagtailadmin/404.html b/wagtail/admin/templates/wagtailadmin/404.html index 5530c24aba..5cf309c718 100644 --- a/wagtail/admin/templates/wagtailadmin/404.html +++ b/wagtail/admin/templates/wagtailadmin/404.html @@ -19,7 +19,7 @@

- {% trans "Error 404" %} + {% trans "Error 404" %}

diff --git a/wagtail/admin/templates/wagtailadmin/account/password_reset/confirm.html b/wagtail/admin/templates/wagtailadmin/account/password_reset/confirm.html index a86ef0a253..a007134427 100644 --- a/wagtail/admin/templates/wagtailadmin/account/password_reset/confirm.html +++ b/wagtail/admin/templates/wagtailadmin/account/password_reset/confirm.html @@ -17,56 +17,56 @@ {% block furniture %}

- {% if validlink %} -
- {% csrf_token %} -

{% trans "Set your new password" %}

+ {% if validlink %} + + {% csrf_token %} +

{% trans "Set your new password" %}

-
    -
  • -
    - {{ form.new_password1.label_tag }} - {{ form.new_password1 }} +
      +
    • +
      + {{ form.new_password1.label_tag }} + {{ form.new_password1 }} - {% if form.new_password1.errors %} -
      - {% for error in form.new_password1.errors %} -

      {{ error }}

      - {% endfor %} -
      - {% endif %} -
      -
    • -
    • -
      - {{ form.new_password2.label_tag }} - {{ form.new_password2 }} + {% if form.new_password1.errors %} +
      + {% for error in form.new_password1.errors %} +

      {{ error }}

      + {% endfor %} +
      + {% endif %} +
      +
    • +
    • +
      + {{ form.new_password2.label_tag }} + {{ form.new_password2 }} - {% if form.new_password2.errors %} -
      - {% for error in form.new_password2.errors %} -

      {{ error }}

      - {% endfor %} -
      - {% endif %} -
      -
    • -
    • - -
    • -
    - - {% else %} -

    {% trans "Invalid password reset link" %}

    -
    -
      -
    • - {% trans "The password reset link was invalid, possibly because it has already been used." %} -
    • -
    -
    - {% trans 'Request a new password reset' %} - {% endif %} + {% if form.new_password2.errors %} +
    + {% for error in form.new_password2.errors %} +

    {{ error }}

    + {% endfor %} +
    + {% endif %} +
    +
  • +
  • + +
  • +
+ + {% else %} +

{% trans "Invalid password reset link" %}

+
+
    +
  • + {% trans "The password reset link was invalid, possibly because it has already been used." %} +
  • +
+
+ {% trans 'Request a new password reset' %} + {% endif %}
{% endblock %} diff --git a/wagtail/admin/templates/wagtailadmin/base.html b/wagtail/admin/templates/wagtailadmin/base.html index 9a702b5994..ca62b526eb 100644 --- a/wagtail/admin/templates/wagtailadmin/base.html +++ b/wagtail/admin/templates/wagtailadmin/base.html @@ -5,37 +5,37 @@ {% slim_sidebar_enabled as slim_sidebar_enabled %} {% if slim_sidebar_enabled %} - {% sidebar_props %} - + {% sidebar_props %} + {% else %} - + {# Backwards-compatibility for branding_logo customisations in legacy sidebar. #} + {# RemovedInWagtail218Warning Remove when removing the legacy sidebar. #} + {% endif %}
@@ -46,17 +46,17 @@ @@ -64,7 +64,7 @@
{% if not slim_sidebar_enabled %} - + {% endif %} {% block content %}{% endblock %} diff --git a/wagtail/admin/templates/wagtailadmin/bulk_actions/confirmation/form_with_fields.html b/wagtail/admin/templates/wagtailadmin/bulk_actions/confirmation/form_with_fields.html index 4a2ffe2f37..92a4aab60f 100644 --- a/wagtail/admin/templates/wagtailadmin/bulk_actions/confirmation/form_with_fields.html +++ b/wagtail/admin/templates/wagtailadmin/bulk_actions/confirmation/form_with_fields.html @@ -1,7 +1,7 @@ {% extends './form.html' %} {% block form_fields %} - + {% endblock form_fields %} diff --git a/wagtail/admin/templates/wagtailadmin/bulk_actions/confirmation/list_items_with_no_access.html b/wagtail/admin/templates/wagtailadmin/bulk_actions/confirmation/list_items_with_no_access.html index 8a93b3a9df..1febc300a8 100644 --- a/wagtail/admin/templates/wagtailadmin/bulk_actions/confirmation/list_items_with_no_access.html +++ b/wagtail/admin/templates/wagtailadmin/bulk_actions/confirmation/list_items_with_no_access.html @@ -1,10 +1,10 @@ {% if items %} -

{{ no_access_msg }}

- +

{{ no_access_msg }}

+ {% endif %} diff --git a/wagtail/admin/templates/wagtailadmin/bulk_actions/footer.html b/wagtail/admin/templates/wagtailadmin/bulk_actions/footer.html index 5a1478ddf8..ec512dda28 100644 --- a/wagtail/admin/templates/wagtailadmin/bulk_actions/footer.html +++ b/wagtail/admin/templates/wagtailadmin/bulk_actions/footer.html @@ -6,7 +6,7 @@ {% if objects.has_other_pages %} - + {% endif %} diff --git a/wagtail/admin/templates/wagtailadmin/bulk_actions/listing_checkbox_cell.html b/wagtail/admin/templates/wagtailadmin/bulk_actions/listing_checkbox_cell.html index ce58a000f8..bedb1ee76f 100644 --- a/wagtail/admin/templates/wagtailadmin/bulk_actions/listing_checkbox_cell.html +++ b/wagtail/admin/templates/wagtailadmin/bulk_actions/listing_checkbox_cell.html @@ -1,9 +1,9 @@ {% load i18n l10n wagtailadmin_tags %} diff --git a/wagtail/admin/templates/wagtailadmin/chooser/browse.html b/wagtail/admin/templates/wagtailadmin/chooser/browse.html index dac5a3819e..e2551d10f4 100644 --- a/wagtail/admin/templates/wagtailadmin/chooser/browse.html +++ b/wagtail/admin/templates/wagtailadmin/chooser/browse.html @@ -14,7 +14,7 @@

{% blocktrans with type=page_type_names|join:", " count counter=page_type_names|length %} Only pages of type "{{ type }}" may be chosen for this field. Search results will exclude pages of other types. - {% plural %} + {% plural %} Only the following page types may be chosen for this field: {{ type }}. Search results will exclude pages of other types. {% endblocktrans %}

diff --git a/wagtail/admin/templates/wagtailadmin/chooser/confirm_external_to_internal.html b/wagtail/admin/templates/wagtailadmin/chooser/confirm_external_to_internal.html index 3b53d6bafc..bc3855e171 100644 --- a/wagtail/admin/templates/wagtailadmin/chooser/confirm_external_to_internal.html +++ b/wagtail/admin/templates/wagtailadmin/chooser/confirm_external_to_internal.html @@ -3,19 +3,19 @@ {% include "wagtailadmin/shared/header.html" with title=convert_str %}
-

- {% blocktrans %} - The URL you entered, {{ submitted_url }}, - looks like it matches the internal page {{ page }}, which has the URL - {{ internal_url }}. - {% endblocktrans %} -

-

- {% blocktrans %} - Converting this to an internal link to {{ page }} would make the link more robust. - Would you like to do this? - {% endblocktrans %} -

+

+ {% blocktrans %} + The URL you entered, {{ submitted_url }}, + looks like it matches the internal page {{ page }}, which has the URL + {{ internal_url }}. + {% endblocktrans %} +

+

+ {% blocktrans %} + Converting this to an internal link to {{ page }} would make the link more robust. + Would you like to do this? + {% endblocktrans %} +

-
\ No newline at end of file + diff --git a/wagtail/admin/templates/wagtailadmin/collections/_privacy_switch.html b/wagtail/admin/templates/wagtailadmin/collections/_privacy_switch.html index 029aa745cd..2ad2fcc55b 100644 --- a/wagtail/admin/templates/wagtailadmin/collections/_privacy_switch.html +++ b/wagtail/admin/templates/wagtailadmin/collections/_privacy_switch.html @@ -3,16 +3,16 @@ {% test_collection_is_public collection as is_public %} {% if not collection.is_root %} -
- {% trans "Privacy" %} - -
+
+ {% trans "Privacy" %} + +
{% endif %} diff --git a/wagtail/admin/templates/wagtailadmin/edit_handlers/field_row_panel.html b/wagtail/admin/templates/wagtailadmin/edit_handlers/field_row_panel.html index ead32db1a3..5f6fb093f7 100644 --- a/wagtail/admin/templates/wagtailadmin/edit_handlers/field_row_panel.html +++ b/wagtail/admin/templates/wagtailadmin/edit_handlers/field_row_panel.html @@ -1,7 +1,7 @@ diff --git a/wagtail/admin/templates/wagtailadmin/edit_handlers/inline_panel.html b/wagtail/admin/templates/wagtailadmin/edit_handlers/inline_panel.html index 9860b4ef00..d288c5f4d4 100644 --- a/wagtail/admin/templates/wagtailadmin/edit_handlers/inline_panel.html +++ b/wagtail/admin/templates/wagtailadmin/edit_handlers/inline_panel.html @@ -18,9 +18,9 @@

diff --git a/wagtail/admin/templates/wagtailadmin/edit_handlers/inline_panel_child.html b/wagtail/admin/templates/wagtailadmin/edit_handlers/inline_panel_child.html index 69c1186a4f..b80829dbe9 100644 --- a/wagtail/admin/templates/wagtailadmin/edit_handlers/inline_panel_child.html +++ b/wagtail/admin/templates/wagtailadmin/edit_handlers/inline_panel_child.html @@ -1,13 +1,13 @@ {% load i18n wagtailadmin_tags %}

  • {% if child.form.non_field_errors %} - + {% endif %} + + {% endif %} diff --git a/wagtail/contrib/modeladmin/templates/modeladmin/index.html b/wagtail/contrib/modeladmin/templates/modeladmin/index.html index a7650b7214..3a069523b9 100644 --- a/wagtail/contrib/modeladmin/templates/modeladmin/index.html +++ b/wagtail/contrib/modeladmin/templates/modeladmin/index.html @@ -61,10 +61,10 @@ {% block filters %} {% if view.has_filters and all_count %} -
    -

    {% trans 'Filter' %}

    - {% for spec in view.filter_specs %}{% admin_list_filter view spec %}{% endfor %} -
    +
    +

    {% trans 'Filter' %}

    + {% for spec in view.filter_specs %}{% admin_list_filter view spec %}{% endfor %} +
    {% endif %} {% endblock %} @@ -79,11 +79,11 @@ {% else %}

    {% blocktrans with view.verbose_name_plural as name %}No {{ name }} have been created yet.{% endblocktrans %} - {% if user_can_create %} - {% blocktrans with view.create_url as url %} - Why not add one? - {% endblocktrans %} - {% endif %}

    + {% if user_can_create %} + {% blocktrans with view.create_url as url %} + Why not add one? + {% endblocktrans %} + {% endif %}

    {% endif %} {% else %} diff --git a/wagtail/contrib/modeladmin/templates/modeladmin/inspect.html b/wagtail/contrib/modeladmin/templates/modeladmin/inspect.html index 8a7f4d2a35..ca0bae7663 100644 --- a/wagtail/contrib/modeladmin/templates/modeladmin/inspect.html +++ b/wagtail/contrib/modeladmin/templates/modeladmin/inspect.html @@ -30,10 +30,10 @@ {% block fields_output %} {% if fields %}
    - {% for field in fields %} -
    {{ field.label }}
    -
    {{ field.value }}
    - {% endfor %} + {% for field in fields %} +
    {{ field.label }}
    +
    {{ field.value }}
    + {% endfor %}
    {% endif %} {% endblock %} diff --git a/wagtail/contrib/modeladmin/templates/modeladmin/prepopulated_slugs.html b/wagtail/contrib/modeladmin/templates/modeladmin/prepopulated_slugs.html index 17131db616..d645ff3771 100644 --- a/wagtail/contrib/modeladmin/templates/modeladmin/prepopulated_slugs.html +++ b/wagtail/contrib/modeladmin/templates/modeladmin/prepopulated_slugs.html @@ -1,6 +1,6 @@ {% load l10n static %} diff --git a/wagtail/contrib/redirects/templates/wagtailredirects/results.html b/wagtail/contrib/redirects/templates/wagtailredirects/results.html index 5c17705390..0f6e191fec 100644 --- a/wagtail/contrib/redirects/templates/wagtailredirects/results.html +++ b/wagtail/contrib/redirects/templates/wagtailredirects/results.html @@ -2,11 +2,11 @@ {% if redirects %} {% if query_string %}

    - {% blocktrans count counter=redirects.paginator.count %} - There is {{ counter }} match - {% plural %} - There are {{ counter }} matches - {% endblocktrans %} + {% blocktrans count counter=redirects.paginator.count %} + There is {{ counter }} match + {% plural %} + There are {{ counter }} matches + {% endblocktrans %}

    {% endif %} @@ -14,9 +14,9 @@ {% include "wagtailadmin/shared/pagination_nav.html" with items=redirects linkurl="wagtailredirects:index" %} {% else %} - {% if query_string %} -

    {% blocktrans %}Sorry, no redirects match "{{ query_string }}"{% endblocktrans %}

    - {% else %} + {% if query_string %} +

    {% blocktrans %}Sorry, no redirects match "{{ query_string }}"{% endblocktrans %}

    + {% else %} {% url 'wagtailredirects:add' as wagtailredirects_add_redirect_url %}

    {% blocktrans %}No redirects have been created. Why not add one?{% endblocktrans %}

    {% endif %} diff --git a/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/includes/searchpromotions_formset.html b/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/includes/searchpromotions_formset.html index 951a92b28c..6913fd7927 100644 --- a/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/includes/searchpromotions_formset.html +++ b/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/includes/searchpromotions_formset.html @@ -7,9 +7,9 @@

    diff --git a/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/index.html b/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/index.html index 6466a18045..b464a38eaf 100644 --- a/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/index.html +++ b/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/index.html @@ -20,7 +20,7 @@ {% url "wagtailsearchpromotions:add" as add_link %} {% include "wagtailadmin/shared/header.html" with title=sp_title_str action_url=add_link icon="pick" action_text=sp_text_str search_url="wagtailsearchpromotions:index" %} -

    +
    {% include "wagtailsearchpromotions/results.html" %}
    diff --git a/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/results.html b/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/results.html index 0572336e55..bd72322da8 100644 --- a/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/results.html +++ b/wagtail/contrib/search_promotions/templates/wagtailsearchpromotions/results.html @@ -2,11 +2,11 @@ {% if queries %} {% if is_searching %}

    - {% blocktrans count counter=queries|length %} - There is {{ counter }} match - {% plural %} - There are {{ counter }} matches - {% endblocktrans %} + {% blocktrans count counter=queries|length %} + There is {{ counter }} match + {% plural %} + There are {{ counter }} matches + {% endblocktrans %}

    {% endif %} @@ -15,7 +15,7 @@ {% include "wagtailadmin/shared/pagination_nav.html" with items=queries linkurl="wagtailsearchpromotions:index" %} {% else %} {% if is_searching %} -

    {% blocktrans %}Sorry, no promoted results match "{{ query_string }}"{% endblocktrans %}

    +

    {% blocktrans %}Sorry, no promoted results match "{{ query_string }}"{% endblocktrans %}

    {% else %} {% url 'wagtailsearchpromotions:add' as wagtailsearchpromotions_add_url %}

    {% blocktrans %}No promoted results have been created. Why not add one?{% endblocktrans %}

    diff --git a/wagtail/contrib/settings/templates/wagtailsettings/edit.html b/wagtail/contrib/settings/templates/wagtailsettings/edit.html index 7e67fb65cb..52a1a818c3 100644 --- a/wagtail/contrib/settings/templates/wagtailsettings/edit.html +++ b/wagtail/contrib/settings/templates/wagtailsettings/edit.html @@ -16,17 +16,17 @@
    {% if site_switcher %} -
    -
    - -
    - {{ site_switcher.site }} - -
    -
    -
    +
    +
    + +
    + {{ site_switcher.site }} + +
    +
    +
    {% endif %}
    diff --git a/wagtail/contrib/styleguide/templates/wagtailstyleguide/base.html b/wagtail/contrib/styleguide/templates/wagtailstyleguide/base.html index c36853878a..cc2ec17b67 100644 --- a/wagtail/contrib/styleguide/templates/wagtailstyleguide/base.html +++ b/wagtail/contrib/styleguide/templates/wagtailstyleguide/base.html @@ -71,7 +71,7 @@
    -

    Accessible colour combinations

    +

    Accessible colour combinations

    WCAG (Web Content Accessibility Guidelines) ensures that content is accessible by everyone, regardless of any disability or user device. To ensure text remains compliant with WCAG 2.0 AA standards, use only these permitted colour combinations.

    Use this Color Palette Accessibility Checker to test new colour combinations using the existing colour palette.

    @@ -753,7 +753,7 @@

     

    -
    +
    50%
    @@ -786,21 +786,21 @@

    SVG Icons

    - + @keyframes spin-wag { + from { + transform: translateY(0.6em) rotate(0deg); + } to { + transform: translateY(0.6em) rotate(360deg); + } + } + diff --git a/wagtail/images/templates/wagtailimages/images/results.html b/wagtail/images/templates/wagtailimages/images/results.html index 570843c189..26e87a8c51 100644 --- a/wagtail/images/templates/wagtailimages/images/results.html +++ b/wagtail/images/templates/wagtailimages/images/results.html @@ -3,11 +3,11 @@ {% if images %} {% if is_searching %}

    - {% blocktrans count counter=images.paginator.count %} - There is {{ counter }} match - {% plural %} - There are {{ counter }} matches - {% endblocktrans %} + {% blocktrans count counter=images.paginator.count %} + There is {{ counter }} match + {% plural %} + There are {{ counter }} matches + {% endblocktrans %}

    {% search_other %} diff --git a/wagtail/images/templates/wagtailimages/multiple/add.html b/wagtail/images/templates/wagtailimages/multiple/add.html index 60e0565bc0..96b06331cd 100644 --- a/wagtail/images/templates/wagtailimages/multiple/add.html +++ b/wagtail/images/templates/wagtailimages/multiple/add.html @@ -34,13 +34,13 @@ {% minimum_collection_depth collections as min_depth %} {% for collection in collections %} {% endfor %} diff --git a/wagtail/project_template/home/templates/home/welcome_page.html b/wagtail/project_template/home/templates/home/welcome_page.html index af0a372a6f..1ff62aa779 100644 --- a/wagtail/project_template/home/templates/home/welcome_page.html +++ b/wagtail/project_template/home/templates/home/welcome_page.html @@ -1,52 +1,52 @@ {% templatetag openblock %} load i18n wagtailcore_tags {% templatetag closeblock %}
    - - + +
    -
    - -
    -
    -

    {% templatetag openblock %} trans "Welcome to your new Wagtail site!" {% templatetag closeblock %}

    -

    {% templatetag openblock %} trans 'Please feel free to join our community on Slack, or get started with one of the links below.' {% templatetag closeblock %}

    -
    +
    + +
    +
    +

    {% templatetag openblock %} trans "Welcome to your new Wagtail site!" {% templatetag closeblock %}

    +

    {% templatetag openblock %} trans 'Please feel free to join our community on Slack, or get started with one of the links below.' {% templatetag closeblock %}

    +
    diff --git a/wagtail/project_template/project_name/templates/404.html b/wagtail/project_template/project_name/templates/404.html index 7b25299571..10df86ff39 100644 --- a/wagtail/project_template/project_name/templates/404.html +++ b/wagtail/project_template/project_name/templates/404.html @@ -5,7 +5,7 @@ {% templatetag openblock %} block body_class {% templatetag closeblock %}template-404{% templatetag openblock %} endblock {% templatetag closeblock %} {% templatetag openblock %} block content {% templatetag closeblock %} -

    Page not found

    +

    Page not found

    -

    Sorry, this page could not be found.

    +

    Sorry, this page could not be found.

    {% templatetag openblock %} endblock {% templatetag closeblock %} diff --git a/wagtail/project_template/project_name/templates/base.html b/wagtail/project_template/project_name/templates/base.html index 7777ba55d0..ecf45473cf 100644 --- a/wagtail/project_template/project_name/templates/base.html +++ b/wagtail/project_template/project_name/templates/base.html @@ -6,11 +6,11 @@ {% templatetag openblock %} block title %} - {% templatetag openblock %} if page.seo_title %}{% templatetag openvariable %} page.seo_title {% templatetag closevariable %}{% templatetag openblock %} else %}{% templatetag openvariable %} page.title {% templatetag closevariable %}{% templatetag openblock %} endif %} + {% templatetag openblock %} if page.seo_title %}{% templatetag openvariable %} page.seo_title {% templatetag closevariable %}{% templatetag openblock %} else %}{% templatetag openvariable %} page.title {% templatetag closevariable %}{% templatetag openblock %} endif %} {% templatetag openblock %} endblock %} {% templatetag openblock %} block title_suffix %} - {% templatetag openblock %} wagtail_site as current_site %} - {% templatetag openblock %} if current_site and current_site.site_name %}- {% templatetag openvariable %} current_site.site_name {% templatetag closevariable %}{% templatetag openblock %} endif %} + {% templatetag openblock %} wagtail_site as current_site %} + {% templatetag openblock %} if current_site and current_site.site_name %}- {% templatetag openvariable %} current_site.site_name {% templatetag closevariable %}{% templatetag openblock %} endif %} {% templatetag openblock %} endblock %} @@ -20,7 +20,7 @@ {% templatetag openblock %} block extra_css {% templatetag closeblock %} - {% templatetag opencomment %} Override this in templates to add extra stylesheets {% templatetag closecomment %} + {% templatetag opencomment %} Override this in templates to add extra stylesheets {% templatetag closecomment %} {% templatetag openblock %} endblock {% templatetag closeblock %} @@ -33,7 +33,7 @@ {% templatetag openblock %} block extra_js {% templatetag closeblock %} - {% templatetag opencomment %} Override this in templates to add extra javascript {% templatetag closecomment %} + {% templatetag opencomment %} Override this in templates to add extra javascript {% templatetag closecomment %} {% templatetag openblock %} endblock {% templatetag closeblock %} diff --git a/wagtail/project_template/search/templates/search/search.html b/wagtail/project_template/search/templates/search/search.html index 3a94ac673e..ce43d5326f 100644 --- a/wagtail/project_template/search/templates/search/search.html +++ b/wagtail/project_template/search/templates/search/search.html @@ -6,33 +6,33 @@ {% templatetag openblock %} block title {% templatetag closeblock %}Search{% templatetag openblock %} endblock {% templatetag closeblock %} {% templatetag openblock %} block content {% templatetag closeblock %} -

    Search

    +

    Search

    -
    - - -
    +
    + + +
    - {% templatetag openblock %} if search_results {% templatetag closeblock %} - - - {% templatetag openblock %} if search_results.has_previous {% templatetag closeblock %} - Previous +{% templatetag openblock %} if search_results {% templatetag closeblock %} + - {% templatetag openblock %} if search_results.has_next {% templatetag closeblock %} - Next - {% templatetag openblock %} endif {% templatetag closeblock %} - {% templatetag openblock %} elif search_query {% templatetag closeblock %} - No results found - {% templatetag openblock %} endif {% templatetag closeblock %} +{% templatetag openblock %} if search_results.has_previous {% templatetag closeblock %} +Previous +{% templatetag openblock %} endif {% templatetag closeblock %} + +{% templatetag openblock %} if search_results.has_next {% templatetag closeblock %} +Next +{% templatetag openblock %} endif {% templatetag closeblock %} +{% templatetag openblock %} elif search_query {% templatetag closeblock %} +No results found +{% templatetag openblock %} endif {% templatetag closeblock %} {% templatetag openblock %} endblock {% templatetag closeblock %} diff --git a/wagtail/search/templates/wagtailsearch/queries/chooser_field.html b/wagtail/search/templates/wagtailsearch/queries/chooser_field.html index f6e9f39462..c8e317694d 100644 --- a/wagtail/search/templates/wagtailsearch/queries/chooser_field.html +++ b/wagtail/search/templates/wagtailsearch/queries/chooser_field.html @@ -2,9 +2,9 @@ {% load i18n %} {% trans "Date" %} {% block form_field %} -
    - {{ field }} +
    + {{ field }} - +
    {% endblock %} diff --git a/wagtail/search/templates/wagtailsearch/search_results.html b/wagtail/search/templates/wagtailsearch/search_results.html index e9a11550c9..d633c59345 100644 --- a/wagtail/search/templates/wagtailsearch/search_results.html +++ b/wagtail/search/templates/wagtailsearch/search_results.html @@ -1,22 +1,22 @@ - - Search{% if search_results %} Results{% endif %} - - -

    Search{% if search_results %} Results{% endif %}

    + + Search{% if search_results %} Results{% endif %} + + +

    Search{% if search_results %} Results{% endif %}

    -
    - - -
    +
    + + +
    - {% if search_results %} - - {% endif %} - - \ No newline at end of file + {% if search_results %} + + {% endif %} + + diff --git a/wagtail/snippets/templates/wagtailsnippets/chooser/results.html b/wagtail/snippets/templates/wagtailsnippets/chooser/results.html index 1e1afdb26d..7824f4fec6 100644 --- a/wagtail/snippets/templates/wagtailsnippets/chooser/results.html +++ b/wagtail/snippets/templates/wagtailsnippets/chooser/results.html @@ -2,11 +2,11 @@ {% if items %} {% if is_searching %}

    - {% blocktrans count counter=items.paginator.count %} - There is {{ counter }} match - {% plural %} - There are {{ counter }} matches - {% endblocktrans %} + {% blocktrans count counter=items.paginator.count %} + There is {{ counter }} match + {% plural %} + There are {{ counter }} matches + {% endblocktrans %}

    {% endif %} @@ -16,7 +16,7 @@ {% include "wagtailadmin/shared/pagination_nav.html" with items=items linkurl=pagination_base_url %} {% else %} {% if is_searching %} -

    {% blocktrans %}Sorry, no snippets match "{{ query_string }}"{% endblocktrans %}

    +

    {% blocktrans %}Sorry, no snippets match "{{ query_string }}"{% endblocktrans %}

    {% else %} {% url 'wagtailsnippets:add' model_opts.app_label model_opts.model_name as wagtailsnippets_create_snippet_url %}

    {% blocktrans with snippet_type_name=model_opts.verbose_name %}You haven't created any {{ snippet_type_name }} snippets. Why not create one now?{% endblocktrans %}

    diff --git a/wagtail/snippets/templates/wagtailsnippets/snippets/_header_with_history.html b/wagtail/snippets/templates/wagtailsnippets/snippets/_header_with_history.html index bfb50700e4..f0fc7e885c 100644 --- a/wagtail/snippets/templates/wagtailsnippets/snippets/_header_with_history.html +++ b/wagtail/snippets/templates/wagtailsnippets/snippets/_header_with_history.html @@ -5,18 +5,18 @@ {% url 'wagtailsnippets:history' model_opts.app_label model_opts.model_name instance.pk|admin_urlquote as history_url %} {% if latest_log_entry %} -
    -
      -
    • - - {% trans "Last updated" %} - {% include "wagtailadmin/shared/last_updated.html" with last_updated=latest_log_entry.timestamp time_prefix="at" %} -
    • - {% if history_url %} -
    • {% icon "history" class_name="default" %} {% trans "History" %}
    • - {% endif %} -
    • {% icon "snippet" class_name="default" %} {{ model_opts.verbose_name|capfirst }}
    • -
    -
    +
    +
      +
    • + + {% trans "Last updated" %} + {% include "wagtailadmin/shared/last_updated.html" with last_updated=latest_log_entry.timestamp time_prefix="at" %} +
    • + {% if history_url %} +
    • {% icon "history" class_name="default" %} {% trans "History" %}
    • + {% endif %} +
    • {% icon "snippet" class_name="default" %} {{ model_opts.verbose_name|capfirst }}
    • +
    +
    {% endif %} {% endblock %} diff --git a/wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/menu.html b/wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/menu.html index 2d9fd820c1..7d07200a63 100644 --- a/wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/menu.html +++ b/wagtail/snippets/templates/wagtailsnippets/snippets/action_menu/menu.html @@ -7,7 +7,7 @@
      {% for item in rendered_menu_items %}
    • - {{ item }} + {{ item }}
    • {% endfor %}
    diff --git a/wagtail/snippets/templates/wagtailsnippets/snippets/confirm_delete.html b/wagtail/snippets/templates/wagtailsnippets/snippets/confirm_delete.html index e7f4455606..ea35b43cf4 100644 --- a/wagtail/snippets/templates/wagtailsnippets/snippets/confirm_delete.html +++ b/wagtail/snippets/templates/wagtailsnippets/snippets/confirm_delete.html @@ -2,9 +2,9 @@ {% load wagtailadmin_tags i18n %} {% block titletag %} {% if count == 1 %} - {% blocktrans with snippet_type_name=model_opts.verbose_name %}Delete {{ snippet_type_name }}{% endblocktrans %} - {{ instances|first }} + {% blocktrans with snippet_type_name=model_opts.verbose_name %}Delete {{ snippet_type_name }}{% endblocktrans %} - {{ instances|first }} {% else %} - {{ count }} {{ model_opts.verbose_name_plural|capfirst }} + {{ count }} {{ model_opts.verbose_name_plural|capfirst }} {% endif %} {% endblock %} {% block content %} @@ -28,7 +28,7 @@

    {% blocktrans with snippet_type_name=model_opts.verbose_name_plural %}Are you sure you want to delete {{ count }} {{ snippet_type_name }}?{% endblocktrans %}

      {% for instance in instances %} -
    • {{ instance }}
    • +
    • {{ instance }}
    • {% endfor %}
    {% endif %} diff --git a/wagtail/snippets/templates/wagtailsnippets/snippets/edit.html b/wagtail/snippets/templates/wagtailsnippets/snippets/edit.html index 9e3d7bc0d0..53f57d2799 100644 --- a/wagtail/snippets/templates/wagtailsnippets/snippets/edit.html +++ b/wagtail/snippets/templates/wagtailsnippets/snippets/edit.html @@ -27,14 +27,14 @@
    {% if uc_enabled %} - {% endif %} diff --git a/wagtail/snippets/templates/wagtailsnippets/snippets/results.html b/wagtail/snippets/templates/wagtailsnippets/snippets/results.html index bf1bb982d7..7673967aad 100644 --- a/wagtail/snippets/templates/wagtailsnippets/snippets/results.html +++ b/wagtail/snippets/templates/wagtailsnippets/snippets/results.html @@ -2,11 +2,11 @@ {% if items %} {% if is_searching %}

    - {% blocktrans count counter=items.paginator.count %} - There is {{ counter }} match - {% plural %} - There are {{ counter }} matches - {% endblocktrans %} + {% blocktrans count counter=items.paginator.count %} + There is {{ counter }} match + {% plural %} + There are {{ counter }} matches + {% endblocktrans %}

    {% endif %} @@ -16,7 +16,7 @@ {% include "wagtailadmin/shared/pagination_nav.html" with items=items linkurl=wagtailsnippets_list_url %} {% else %} {% if is_searching %} -

    {% blocktrans %}Sorry, no snippets match "{{ query_string }}"{% endblocktrans %}

    +

    {% blocktrans %}Sorry, no snippets match "{{ query_string }}"{% endblocktrans %}

    {% else %} {% url 'wagtailsnippets:add' model_opts.app_label model_opts.model_name as wagtailsnippets_create_url %} diff --git a/wagtail/tests/testapp/templates/tests/event_page.html b/wagtail/tests/testapp/templates/tests/event_page.html index 953c90273d..013ee6d852 100644 --- a/wagtail/tests/testapp/templates/tests/event_page.html +++ b/wagtail/tests/testapp/templates/tests/event_page.html @@ -3,21 +3,21 @@ {% block html_title %}Event: {{ self.title }}{% endblock %} {% block content %} -

    Event

    - {% if self.feed_image %} - {% image self.feed_image width-200 class="feed-image" %} - {% endif %} - - {% with self.categories.all as categories %} - {% if categories %} - +

    Event

    + {% if self.feed_image %} + {% image self.feed_image width-200 class="feed-image" %} {% endif %} - {% endwith %} - {{ self.body|richtext }} -

    Back to events index

    + {% with self.categories.all as categories %} + {% if categories %} + + {% endif %} + {% endwith %} + + {{ self.body|richtext }} +

    Back to events index

    {% endblock %} diff --git a/wagtail/tests/testapp/templates/tests/form_page_landing.html b/wagtail/tests/testapp/templates/tests/form_page_landing.html index 420f2f8c1b..6407b8ba63 100644 --- a/wagtail/tests/testapp/templates/tests/form_page_landing.html +++ b/wagtail/tests/testapp/templates/tests/form_page_landing.html @@ -5,8 +5,8 @@

    Thank you for your feedback.

    {% endblock %} diff --git a/wagtail/tests/testapp/templates/tests/form_page_with_custom_form_builder_landing.html b/wagtail/tests/testapp/templates/tests/form_page_with_custom_form_builder_landing.html index dff020a3b9..816fc42773 100644 --- a/wagtail/tests/testapp/templates/tests/form_page_with_custom_form_builder_landing.html +++ b/wagtail/tests/testapp/templates/tests/form_page_with_custom_form_builder_landing.html @@ -3,8 +3,8 @@ {% block content %}

    Thank you for submitting a Support Request.

    {% endblock %} diff --git a/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_assign_role.html b/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_assign_role.html index d12fe64e71..42c0c3a216 100644 --- a/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_assign_role.html +++ b/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_assign_role.html @@ -9,31 +9,31 @@ {% endblock header %} {% block items_with_access %} - {% if items %} + {% if items %}

    {% trans "Are you sure you want to assign this role to these users?" %}

    - {% endif %} + {% endif %} {% endblock items_with_access %} {% block items_with_no_access %} -{% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to edit this user{% plural %}You don't have permission to edit these users{% endblocktrans %} -{% include 'wagtailusers/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} + {% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to edit this user{% plural %}You don't have permission to edit these users{% endblocktrans %} + {% include 'wagtailusers/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} {% endblock items_with_no_access %} {% block form_section %} -{% if items %} - {% trans 'Yes, assign' as action_button_text %} - {% trans "No, don't assign" as no_action_button_text %} - {% include 'wagtailadmin/bulk_actions/confirmation/form_with_fields.html' %} -{% else %} - {% include 'wagtailadmin/bulk_actions/confirmation/go_back.html' %} -{% endif %} + {% if items %} + {% trans 'Yes, assign' as action_button_text %} + {% trans "No, don't assign" as no_action_button_text %} + {% include 'wagtailadmin/bulk_actions/confirmation/form_with_fields.html' %} + {% else %} + {% include 'wagtailadmin/bulk_actions/confirmation/go_back.html' %} + {% endif %} {% endblock form_section %} diff --git a/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_delete.html b/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_delete.html index 3f37bed8f6..738132f55e 100644 --- a/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_delete.html +++ b/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_delete.html @@ -9,31 +9,31 @@ {% endblock header %} {% block items_with_access %} - {% if items %} + {% if items %}

    {% trans "Are you sure you want to delete these users?" %}

    - {% endif %} + {% endif %} {% endblock items_with_access %} {% block items_with_no_access %} -{% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to delete this user{% plural %}You don't have permission to delete these users{% endblocktrans %} -{% include 'wagtailusers/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} + {% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to delete this user{% plural %}You don't have permission to delete these users{% endblocktrans %} + {% include 'wagtailusers/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} {% endblock items_with_no_access %} {% block form_section %} -{% if items %} - {% trans 'Yes, delete' as action_button_text %} - {% trans "No, don't delete" as no_action_button_text %} - {% include 'wagtailadmin/bulk_actions/confirmation/form.html' with action_button_class="serious" %} -{% else %} - {% include 'wagtailadmin/bulk_actions/confirmation/go_back.html' %} -{% endif %} + {% if items %} + {% trans 'Yes, delete' as action_button_text %} + {% trans "No, don't delete" as no_action_button_text %} + {% include 'wagtailadmin/bulk_actions/confirmation/form.html' with action_button_class="serious" %} + {% else %} + {% include 'wagtailadmin/bulk_actions/confirmation/go_back.html' %} + {% endif %} {% endblock form_section %} diff --git a/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_set_active_state.html b/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_set_active_state.html index fa3cbdd163..6b0a9cd5b5 100644 --- a/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_set_active_state.html +++ b/wagtail/users/templates/wagtailusers/bulk_actions/confirm_bulk_set_active_state.html @@ -9,34 +9,34 @@ {% endblock header %} {% block items_with_access %} -{% if items %} -

    {% trans "Are you sure you want to change the active state for these users?" %}

    - -{% endif %} + {% if items %} +

    {% trans "Are you sure you want to change the active state for these users?" %}

    + + {% endif %} {% endblock items_with_access %} {% block items_with_no_access %} -{% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to edit this user{% plural %}You don't have permission to edit these users{% endblocktrans %} -{% include 'wagtailusers/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} + {% blocktrans asvar no_access_msg count counter=items_with_no_access|length %}You don't have permission to edit this user{% plural %}You don't have permission to edit these users{% endblocktrans %} + {% include 'wagtailusers/bulk_actions/list_items_with_no_access.html' with items=items_with_no_access no_access_msg=no_access_msg %} -{% trans "You cannot change your own active status" as no_access_msg %} -{% include 'wagtailusers/bulk_actions/list_items_with_no_access.html' with items=mark_self_as_inactive no_access_msg=no_access_msg %} + {% trans "You cannot change your own active status" as no_access_msg %} + {% include 'wagtailusers/bulk_actions/list_items_with_no_access.html' with items=mark_self_as_inactive no_access_msg=no_access_msg %} {% endblock items_with_no_access %} {% block form_section %} -{% if items %} - {% trans 'Yes, change state' as action_button_text %} - {% trans "No, don't change state" as no_action_button_text %} - {% include 'wagtailadmin/bulk_actions/confirmation/form_with_fields.html' %} -{% else %} - {% include 'wagtailadmin/bulk_actions/confirmation/go_back.html' %} -{% endif %} + {% if items %} + {% trans 'Yes, change state' as action_button_text %} + {% trans "No, don't change state" as no_action_button_text %} + {% include 'wagtailadmin/bulk_actions/confirmation/form_with_fields.html' %} + {% else %} + {% include 'wagtailadmin/bulk_actions/confirmation/go_back.html' %} + {% endif %} {% endblock form_section %} diff --git a/wagtail/users/templates/wagtailusers/bulk_actions/list_items_with_no_access.html b/wagtail/users/templates/wagtailusers/bulk_actions/list_items_with_no_access.html index 4d13708698..c4393ecc23 100644 --- a/wagtail/users/templates/wagtailusers/bulk_actions/list_items_with_no_access.html +++ b/wagtail/users/templates/wagtailusers/bulk_actions/list_items_with_no_access.html @@ -2,5 +2,5 @@ {% load i18n wagtailadmin_tags %} {% block per_item %} -{{ item|user_display_name }} + {{ item|user_display_name }} {% endblock per_item %} diff --git a/wagtail/users/templates/wagtailusers/groups/includes/formatted_permissions.html b/wagtail/users/templates/wagtailusers/groups/includes/formatted_permissions.html index 9600934367..d6c6b89dd6 100644 --- a/wagtail/users/templates/wagtailusers/groups/includes/formatted_permissions.html +++ b/wagtail/users/templates/wagtailusers/groups/includes/formatted_permissions.html @@ -9,7 +9,7 @@ {% if custom_perms_exist %} - + {% endif %} @@ -18,48 +18,48 @@ {% trans "Change" %} {% trans "Delete" %} {% if custom_perms_exist %} - {% trans "Custom permissions" %} + {% trans "Custom permissions" %} {% endif %} {% for content_perms_dict in object_perms %} - -

    {{ content_perms_dict.object|capfirst }}

    - - {% if content_perms_dict.add %} - - {{ content_perms_dict.add.checkbox.tag }} + +

    {{ content_perms_dict.object|capfirst }}

    + + {% if content_perms_dict.add %} + + {{ content_perms_dict.add.checkbox.tag }} + {% endif %} + + + {% if content_perms_dict.change %} + + {{ content_perms_dict.change.checkbox.tag }} + {% endif %} + + + {% if content_perms_dict.delete %} + + {{ content_perms_dict.delete.checkbox.tag }} + {% endif %} + + {% if custom_perms_exist %} + + {% if content_perms_dict.custom %} +
    + {% trans "Custom permissions" %} + {% for custom_perm in content_perms_dict.custom %} + + {% endfor %} +
    + {% endif %} + {% endif %} - - - {% if content_perms_dict.change %} - - {{ content_perms_dict.change.checkbox.tag }} - {% endif %} - - - {% if content_perms_dict.delete %} - - {{ content_perms_dict.delete.checkbox.tag }} - {% endif %} - - {% if custom_perms_exist %} - - {% if content_perms_dict.custom %} -
    - {% trans "Custom permissions" %} - {% for custom_perm in content_perms_dict.custom %} - - {% endfor %} -
    - {% endif %} - - {% endif %} - + {% endfor %} diff --git a/wagtail/users/templates/wagtailusers/groups/includes/page_permissions_formset.html b/wagtail/users/templates/wagtailusers/groups/includes/page_permissions_formset.html index 778432b623..77a5388f42 100644 --- a/wagtail/users/templates/wagtailusers/groups/includes/page_permissions_formset.html +++ b/wagtail/users/templates/wagtailusers/groups/includes/page_permissions_formset.html @@ -43,11 +43,11 @@

    diff --git a/wagtail/users/templates/wagtailusers/users/index.html b/wagtail/users/templates/wagtailusers/users/index.html index d964ffb4a7..4bba764fa5 100644 --- a/wagtail/users/templates/wagtailusers/users/index.html +++ b/wagtail/users/templates/wagtailusers/users/index.html @@ -6,9 +6,9 @@