kopia lustrzana https://github.com/wagtail/wagtail
Remove unused _list_choose.html template
rodzic
ae57c0e5fb
commit
2ecb365da8
|
@ -1,78 +0,0 @@
|
|||
{% load i18n l10n wagtailadmin_tags %}
|
||||
|
||||
{# Page listing include, customised for 'choose' mode #}
|
||||
|
||||
<table class="listing chooser">
|
||||
{% if show_ordering_column or show_bulk_actions %}
|
||||
<col width="10px" />
|
||||
{% endif %}
|
||||
<col />
|
||||
{% if show_parent %}
|
||||
<col />
|
||||
{% endif %}
|
||||
<col width="12%" />
|
||||
<col width="12%" />
|
||||
<col width="12%" />
|
||||
<col width="10%" />
|
||||
<thead>
|
||||
<tr class="table-headers">
|
||||
<th class="title">{% trans 'Title' %}</th>
|
||||
{% if show_parent %}
|
||||
<th class="parent">{% trans 'Parent' %}</th>
|
||||
{% endif %}
|
||||
<th class="updated">{% trans 'Updated' %}</th>
|
||||
<th class="type">{% trans 'Type' %}</th>
|
||||
<th class="status">{% trans 'Status' %}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% if pages %}
|
||||
{% for page in pages %}
|
||||
<tr class="{% if page.is_parent_page %}parent-page{% endif %} {% if not page.live %}unpublished{% endif %} {% if not page.can_choose %}disabled{% endif %}">
|
||||
<td class="title">
|
||||
<div class="title-wrapper">
|
||||
{% if page.can_choose %}
|
||||
<a class="choose-page" href="#{{ page.id|unlocalize }}" data-id="{{ page.id|unlocalize }}" data-title="{{ page.title }}" data-admin-title="{{ page.get_admin_display_title }}" data-url="{{ page.url }}" data-parent-id="{{ page.get_parent.id|unlocalize }}" data-edit-url="{% url 'wagtailadmin_pages:edit' page.id %}">{{ page.get_admin_display_title }}</a>
|
||||
{% else %}
|
||||
{{ page.get_admin_display_title }}
|
||||
{% endif %}
|
||||
{% if show_locale_labels and page.depth == 2 %}
|
||||
<span class="status-tag status-tag--label">{{ page.locale.get_display_name }}</span>
|
||||
{% endif %}
|
||||
|
||||
{% include "wagtailadmin/pages/listing/_privacy_indicator.html" with page=page %}
|
||||
{% include "wagtailadmin/pages/listing/_locked_indicator.html" with page=page %}
|
||||
</div>
|
||||
</td>
|
||||
{% if show_parent %}
|
||||
<td class="parent">
|
||||
{% with page.get_parent as parent %}
|
||||
{% if parent %}
|
||||
<a href="{% url 'wagtailadmin_choose_page_child' parent.id %}" class="navigate-parent">{{ parent.get_admin_display_title }}</a>
|
||||
{% if show_locale_labels %}<span class="status-tag status-tag--label">{{ parent.locale.get_display_name }}</span>{% endif %}
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
</td>
|
||||
{% endif %}
|
||||
<td class="updated">{% if page.latest_revision_created_at %}<div class="human-readable-date" title="{{ page.latest_revision_created_at|date:"DATETIME_FORMAT" }}">{% blocktrans trimmed with time_period=page.latest_revision_created_at|timesince %}{{ time_period }} ago{% endblocktrans %}</div>{% endif %}</td>
|
||||
<td class="type">
|
||||
{{ page.page_type_display_name }}
|
||||
</td>
|
||||
<td class="status">
|
||||
{% if not page.is_root %}
|
||||
{% include "wagtailadmin/shared/page_status_tag.html" with page=page %}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="{% if allow_navigation and page.can_descend %}children{% endif %}">
|
||||
{% if allow_navigation and page.can_descend %}
|
||||
<a href="{% url 'wagtailadmin_choose_page_child' page.id %}{% querystring p=None %}" class="icon text-replace icon-arrow-right navigate-pages" title="{% blocktrans trimmed with title=page.get_admin_display_title %}Explore subpages of '{{ title }}'{% endblocktrans %}">{% trans 'Explore' %}</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% block no_results %}{% endblock %}
|
||||
{% endif %}
|
||||
</tbody>
|
||||
</table>
|
Ładowanie…
Reference in New Issue