kopia lustrzana https://github.com/wagtail/wagtail
Add locale label as first item in the page chooser breadcrumb
rodzic
e5a42b0969
commit
ec5be4aa7c
|
@ -3,6 +3,7 @@
|
|||
<ul class="breadcrumb">
|
||||
{% for page in page.get_ancestors.specific %}
|
||||
{% if page.is_root %}
|
||||
{% if show_locale_labels %}<li class="breadcrumb-item"><span class="status-tag primary">{{ page.locale.get_display_name }}</span></li>{% endif %}
|
||||
{% trans 'Home' as home %}
|
||||
<li class="breadcrumb-item home"><a href="{% url 'wagtailadmin_choose_page_child' page.id %}{% querystring p=None %}" class="breadcrumb-link navigate-pages">{% icon name="home" class_name="home_icon" title=home %}{% icon name="arrow-right" class_name="arrow_right_icon" %}</a></li>
|
||||
{% elif forloop.last %}
|
||||
|
|
Ładowanie…
Reference in New Issue