kopia lustrzana https://github.com/wagtail/wagtail
Further locale picker fixes:
* Remove dropdown behaviour when switcher legitimately only contains a single locale * Don't omit listing when there are no child pages, because it's possible to land on a page with no children when switching localespull/9096/head
rodzic
24ac132dfc
commit
5473b5643f
|
@ -2,9 +2,7 @@
|
|||
|
||||
{% include "wagtailadmin/shared/chooser_breadcrumb.html" with page=parent_page show_locale_labels=show_locale_labels %}
|
||||
|
||||
{% if pages %}
|
||||
{% include "wagtailadmin/pages/listing/_list_choose.html" with allow_navigation=1 orderable=0 pages=pages parent_page=parent_page show_locale_labels=show_locale_labels %}
|
||||
{% include "wagtailadmin/pages/listing/_list_choose.html" with allow_navigation=1 orderable=0 pages=pages parent_page=parent_page show_locale_labels=show_locale_labels %}
|
||||
|
||||
{% url 'wagtailadmin_choose_page_child' parent_page.id as pagination_base_url %}
|
||||
{% paginate pages base_url=pagination_base_url classnames="navigate-pages" %}
|
||||
{% endif %}
|
||||
{% url 'wagtailadmin_choose_page_child' parent_page.id as pagination_base_url %}
|
||||
{% paginate pages base_url=pagination_base_url classnames="navigate-pages" %}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
{% include "wagtailadmin/shared/locale_selector.html" with translations=locale_options locale=page.locale only %}
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<div class="c-dropdown t-inverted {{ class }}" style="display: inline-block;" data-dropdown>
|
||||
<div class="c-dropdown t-inverted {{ class }}" style="display: inline-block;">
|
||||
<div aria-label="{{ page.locale.get_display_name }}" class="c-dropdown__button u-btn-current">
|
||||
{% icon name="site" class_name="default" %}
|
||||
{{ page.locale.get_display_name }}
|
||||
|
|
Ładowanie…
Reference in New Issue