Initial commit
This commit is contained in:
66
env/lib/python3.10/site-packages/wagtail/admin/templates/wagtailadmin/home/locked_pages.html
vendored
Normal file
66
env/lib/python3.10/site-packages/wagtail/admin/templates/wagtailadmin/home/locked_pages.html
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
{% load i18n wagtailadmin_tags %}
|
||||
{% load wagtailcore_tags %}
|
||||
{% if locked_pages %}
|
||||
{% panel id="locked-pages" heading=_("Your locked pages") %}
|
||||
<table class="listing listing-page">
|
||||
<col />
|
||||
<col width="30%"/>
|
||||
<col width="15%"/>
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="title">{% trans "Title" %}</th>
|
||||
<th aria-hidden="true">{% comment %} added for visual alignment only {% endcomment %}</th>
|
||||
<th>{% trans "Locked at" %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for page in locked_pages %}
|
||||
<tr>
|
||||
<td class="title" valign="top">
|
||||
<div class="title-wrapper">
|
||||
<a href="{% url 'wagtailadmin_pages:edit' page.id %}" title="{% trans 'Edit this page' %}">{{ page.get_admin_display_title }}</a>
|
||||
|
||||
{% i18n_enabled as show_locale_labels %}
|
||||
{% if show_locale_labels and page.locale_id %}
|
||||
{% locale_label_from_id page.locale_id as locale_label %}
|
||||
{% status locale_label classname="w-status--label" %}
|
||||
{% endif %}
|
||||
{% include "wagtailadmin/pages/listing/_privacy_indicator.html" with page=page %}
|
||||
{% include "wagtailadmin/pages/listing/_locked_indicator.html" with page=page %}
|
||||
</div>
|
||||
<ul class="actions">
|
||||
<li>
|
||||
{% dropdown toggle_icon="dots-horizontal" toggle_aria_label=_("Actions") %}
|
||||
{% if can_remove_locks %}
|
||||
<button
|
||||
data-controller="w-action"
|
||||
data-action="w-action#post"
|
||||
data-w-action-next-value="{% url 'wagtailadmin_home' %}"
|
||||
data-w-action-url-value="{% url 'wagtailadmin_pages:unlock' page.id %}"
|
||||
>
|
||||
{% trans "Unlock" %}
|
||||
</button>
|
||||
{% endif %}
|
||||
<a href="{% url 'wagtailadmin_pages:edit' page.id %}">{% trans "Edit" %}</a>
|
||||
{% if page.has_unpublished_changes and page.is_previewable %}
|
||||
<a href="{% url 'wagtailadmin_pages:view_draft' page.id %}" target="_blank" rel="noreferrer">{% trans 'Draft' %}</a>
|
||||
{% endif %}
|
||||
{% if page.live %}
|
||||
{% pageurl page as page_url %}
|
||||
{% if page_url is not None %}
|
||||
<a href="{{ page_url }}" target="_blank" rel="noreferrer">{% trans 'Live' %}</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% enddropdown %}
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
<td>{# Deliberately empty #}</td>
|
||||
<td valign="top">{% human_readable_date page.locked_at %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endpanel %}
|
||||
{% endif %}
|
||||
58
env/lib/python3.10/site-packages/wagtail/admin/templates/wagtailadmin/home/recent_edits.html
vendored
Normal file
58
env/lib/python3.10/site-packages/wagtail/admin/templates/wagtailadmin/home/recent_edits.html
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
|
||||
{% load wagtailcore_tags %}
|
||||
{% load i18n wagtailadmin_tags %}
|
||||
{% if last_edits %}
|
||||
{% panel id="recent-edits" heading=_("Your most recent edits") %}
|
||||
<table class="listing listing-page">
|
||||
<col />
|
||||
<col width="30%"/>
|
||||
<col width="15%"/>
|
||||
<thead class="w-sr-only">
|
||||
<tr>
|
||||
<th class="title">{% trans "Title" %}</th>
|
||||
<th>{% trans "Status" %}</th>
|
||||
<th>{% trans "Date" %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for last_edited_at, page in last_edits %}
|
||||
<tr>
|
||||
<td class="title" valign="top">
|
||||
<div class="title-wrapper">
|
||||
<a href="{% url 'wagtailadmin_pages:edit' page.id %}" title="{% trans 'Edit this page' %}">{{ page.get_admin_display_title }}</a>
|
||||
|
||||
{% i18n_enabled as show_locale_labels %}
|
||||
{% if show_locale_labels and page.locale_id %}
|
||||
{% locale_label_from_id page.locale_id as locale_label %}
|
||||
{% status locale_label classname="w-status--label" %}
|
||||
{% endif %}
|
||||
{% include "wagtailadmin/pages/listing/_privacy_indicator.html" with page=page %}
|
||||
{% include "wagtailadmin/pages/listing/_locked_indicator.html" with page=page %}
|
||||
</div>
|
||||
<ul class="actions">
|
||||
<li>
|
||||
{% dropdown toggle_icon="dots-horizontal" toggle_aria_label=_("Actions") %}
|
||||
<a href="{% url 'wagtailadmin_pages:edit' page.id %}">{% trans "Edit" %}</a>
|
||||
{% if page.has_unpublished_changes and page.is_previewable %}
|
||||
<a href="{% url 'wagtailadmin_pages:view_draft' page.id %}" target="_blank" rel="noreferrer">{% trans 'Draft' %}</a>
|
||||
{% endif %}
|
||||
{% if page.live %}
|
||||
{% pageurl page as page_url %}
|
||||
{% if page_url is not None %}
|
||||
<a href="{{ page_url }}" target="_blank" rel="noreferrer">{% trans 'Live' %}</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% enddropdown %}
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
<td valign="top">
|
||||
{% include "wagtailadmin/shared/page_status_tag.html" with page=page %}
|
||||
</td>
|
||||
<td valign="top">{% human_readable_date last_edited_at %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endpanel %}
|
||||
{% endif %}
|
||||
11
env/lib/python3.10/site-packages/wagtail/admin/templates/wagtailadmin/home/site_summary.html
vendored
Normal file
11
env/lib/python3.10/site-packages/wagtail/admin/templates/wagtailadmin/home/site_summary.html
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{% load i18n wagtailadmin_tags %}
|
||||
{% if summary_items %}
|
||||
<section class="w-summary" aria-labelledby="header-title">
|
||||
<h2 class="w-sr-only">{% trans "Site summary" %}</h2>
|
||||
<ul class="w-summary__list">
|
||||
{% for item in summary_items %}
|
||||
{% component item %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</section>
|
||||
{% endif %}
|
||||
@@ -0,0 +1,12 @@
|
||||
{% load i18n wagtailadmin_tags %}
|
||||
|
||||
<li>
|
||||
{% icon name="doc-empty" %}
|
||||
<a href="{% url 'wagtailadmin_explore' root_page.pk %}">
|
||||
{% blocktrans trimmed count counter=total_pages with total_pages|intcomma as total %}
|
||||
<span>{{ total }}</span> Page <span class="w-sr-only">created in {{ site_name }}</span>
|
||||
{% plural %}
|
||||
<span>{{ total }}</span> Pages <span class="w-sr-only">created in {{ site_name }}</span>
|
||||
{% endblocktrans %}
|
||||
</a>
|
||||
</li>
|
||||
@@ -0,0 +1,17 @@
|
||||
{% load i18n wagtailcore_tags wagtailadmin_tags %}
|
||||
{% wagtail_version as current_version %}
|
||||
<div
|
||||
class="w-panel-upgrade panel w-hidden"
|
||||
data-controller="w-upgrade"
|
||||
data-w-upgrade-current-version-value="{{ current_version }}"
|
||||
{% if lts_only %}data-w-upgrade-lts-only-value="true"{% endif %}
|
||||
data-w-upgrade-hidden-class="w-hidden"
|
||||
>
|
||||
<div class="help-block help-warning">
|
||||
{% icon name='warning' %}
|
||||
{% blocktrans trimmed %}
|
||||
Wagtail upgrade available. Your version: <strong>{{ current_version }}</strong>. New version: <strong data-w-upgrade-target="latestVersion"></strong>.
|
||||
{% endblocktrans %}
|
||||
<a href="" data-w-upgrade-target="link">{% trans "Read the release notes." %}</a>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,61 @@
|
||||
|
||||
|
||||
{% load i18n wagtailadmin_tags %}
|
||||
{% if workflow_states %}
|
||||
{% panel id="objects-in-workflow" heading=_("Your pages and snippets in a workflow") %}
|
||||
<table class="listing">
|
||||
<col />
|
||||
<col width="30%"/>
|
||||
<col width="15%"/>
|
||||
<thead class="w-sr-only">
|
||||
<tr>
|
||||
<th class="title">{% trans "Title" %}</th>
|
||||
<th>{% trans "Task" %}</th>
|
||||
<th>{% trans "Task started" %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for workflow_state in workflow_states %}
|
||||
{% with obj=workflow_state.content_object %}
|
||||
{% is_page obj as is_page %}
|
||||
{% if is_page %}
|
||||
{% page_permissions obj as page_perms %}
|
||||
{% endif %}
|
||||
<tr>
|
||||
<td class="title" valign="top">
|
||||
<div class="title-wrapper">
|
||||
{% admin_edit_url obj as edit_url %}
|
||||
{% if page_perms.can_edit or not is_page and edit_url %}
|
||||
<a href="{{ edit_url }}" title="{% trans 'Edit' %}">{% latest_str obj %}</a>
|
||||
{% else %}
|
||||
{% latest_str obj %}
|
||||
{% endif %}
|
||||
|
||||
{% i18n_enabled as show_locale_labels %}
|
||||
{% if show_locale_labels and obj.locale_id %}
|
||||
{% locale_label_from_id obj.locale_id as locale_label %}
|
||||
{% status locale_label classname="w-status--label" %}
|
||||
{% endif %}
|
||||
{% if is_page %}
|
||||
{% include "wagtailadmin/pages/listing/_privacy_indicator.html" with page=obj %}
|
||||
{% endif %}
|
||||
{% include "wagtailadmin/pages/listing/_locked_indicator.html" with page=obj %}
|
||||
</div>
|
||||
</td>
|
||||
<td class="task" valign="top">
|
||||
{% if workflow_state.current_task_state.status == 'rejected' %}
|
||||
{% icon name="warning" classname="default" %}
|
||||
{% trans "Changes requested at" %}
|
||||
{% elif workflow_state.current_task_state.status == 'in_progress' %}
|
||||
{% trans "Awaiting" %}
|
||||
{% endif %}
|
||||
{{ workflow_state.current_task_state.task.name }}
|
||||
</td>
|
||||
<td valign="top">{% human_readable_date workflow_state.current_task_state.started_at %}</td>
|
||||
</tr>
|
||||
{% endwith %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endpanel %}
|
||||
{% endif %}
|
||||
@@ -0,0 +1,34 @@
|
||||
{% load i18n wagtailadmin_tags wagtailcore_tags %}
|
||||
|
||||
<section
|
||||
class="w-whats-new w-dismissible"
|
||||
aria-labelledby="whats-new-heading"
|
||||
data-controller="w-dismissible"
|
||||
data-w-dismissible-dismissed-class="w-dismissible--dismissed"
|
||||
data-w-dismissible-id-value="{{ dismissible_id }}"
|
||||
>
|
||||
<div class="w-whats-new__banner">
|
||||
<button class="w-whats-new__dismiss" type="button" data-action="w-dismissible#toggle">
|
||||
{% icon name="circle-xmark" %}
|
||||
<span class="w-sr-only">{% trans "Close" %}</span>
|
||||
</button>
|
||||
<div class="w-whats-new__main-icon">
|
||||
{% icon name="help" %}
|
||||
</div>
|
||||
<div class="w-whats-new__content">
|
||||
<h2 id="whats-new-heading" class="w-whats-new__heading">
|
||||
{% blocktrans trimmed %}
|
||||
Things in Wagtail {{ version }} have changed!
|
||||
{% endblocktrans %}
|
||||
</h2>
|
||||
<p class="w-whats-new__details">
|
||||
{% wagtail_feature_release_editor_guide_link as editor_guide_link %}
|
||||
{% blocktrans trimmed %}
|
||||
Don't worry, we've got your back. Check out the
|
||||
<a class="w-whats-new__link" href="{{ editor_guide_link }}" target="_blank" rel="noreferrer">Wagtail Editor Guide</a>
|
||||
to get the low down on what's changed and some exciting new features!
|
||||
{% endblocktrans %}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -0,0 +1,93 @@
|
||||
{% load i18n wagtailadmin_tags %}
|
||||
{% if states %}
|
||||
{% panel id="awaiting-review" heading=_("Awaiting your review") %}
|
||||
<table class="listing">
|
||||
<col />
|
||||
<col width="15%"/>
|
||||
<col width="15%"/>
|
||||
<col width="15%"/>
|
||||
<thead class="w-sr-only">
|
||||
<tr>
|
||||
<th class="title">{% trans "Title" %}</th>
|
||||
<th>{% trans "Tasks" %}</th>
|
||||
<th>{% trans "Task submitted by" %}</th>
|
||||
<th>{% trans "Task started" %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for state in states %}
|
||||
{% with revision=state.task_state.revision obj=state.obj task_state=state.task_state actions=state.actions workflow_tasks=state.workflow_tasks %}
|
||||
{% is_page obj as is_page %}
|
||||
{% if is_page %}
|
||||
{% page_permissions obj as page_perms %}
|
||||
{% endif %}
|
||||
<tr>
|
||||
<td class="title" valign="top">
|
||||
<div class="title-wrapper">
|
||||
{% admin_edit_url obj as edit_url %}
|
||||
{% if page_perms.can_edit or not is_page and edit_url %}
|
||||
<a href="{{ edit_url }}" title="{% trans 'Edit' %}">{% latest_str obj %}</a>
|
||||
{% else %}
|
||||
{% latest_str obj %}
|
||||
{% endif %}
|
||||
|
||||
{% i18n_enabled as show_locale_labels %}
|
||||
{% if show_locale_labels and obj.locale_id %}
|
||||
{% locale_label_from_id obj.locale_id as locale_label %}
|
||||
{% status locale_label classname="w-status--label" %}
|
||||
{% endif %}
|
||||
{% if is_page %}
|
||||
{% include "wagtailadmin/pages/listing/_privacy_indicator.html" with page=obj %}
|
||||
{% endif %}
|
||||
{% include "wagtailadmin/pages/listing/_locked_indicator.html" with page=obj %}
|
||||
</div>
|
||||
{% if actions %}
|
||||
<ul class="actions">
|
||||
<li>
|
||||
{% dropdown toggle_icon="dots-horizontal" toggle_aria_label=_("Actions") hide_on_click=True keep_mounted=True %}
|
||||
{% for action_name, action_label, modal in actions %}
|
||||
<button data-workflow-action-url="{% url state.workflow_action_url_name obj.pk|admin_urlquote action_name task_state.id %}" {% if modal %}data-launch-modal{% endif %}>{{ action_label }}</button>
|
||||
{% endfor %}
|
||||
{% if page_perms.can_edit or not is_page and edit_url %}
|
||||
<a href="{{ edit_url }}">{% trans 'Edit' %}</a>
|
||||
{% endif %}
|
||||
{% if obj.is_previewable %}
|
||||
<a href="{% url state.workflow_preview_url_name obj.pk|admin_urlquote task_state.task.id %}" target="_blank" rel="noreferrer">{% trans 'Preview' %}</a>
|
||||
{% endif %}
|
||||
{% if state.live_revision_id %}
|
||||
<a href="{% url state.revisions_compare_url_name obj.pk|admin_urlquote 'live' revision.id %}">{% trans "Compare with live version" %}</a>
|
||||
{% endif %}
|
||||
{% if state.previous_revision_id %}
|
||||
<a href="{% url state.revisions_compare_url_name obj.pk|admin_urlquote state.previous_revision_id revision.id %}">{% trans "Compare with previous version" %}</a>
|
||||
{% endif %}
|
||||
{% enddropdown %}
|
||||
</li>
|
||||
</ul>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="tasks" valign="top">
|
||||
{% for task in workflow_tasks %}
|
||||
<span data-controller="w-tooltip" data-w-tooltip-content-value="{{ task.name }}: {{ task.status_display }}">
|
||||
{% if task.status == 'approved' %}
|
||||
{% icon "success" title=task.status_display classname="default" %}
|
||||
{% elif task.status == 'rejected' %}
|
||||
{% icon "error" title=task.status_display classname="default" %}
|
||||
{% else %}
|
||||
{% icon "radio-empty" title=status_display classname="default" %}
|
||||
{% endif %}
|
||||
</span>
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td valign="top">
|
||||
{% if revision.user %}{{ revision.user|user_display_name }}{% endif %}
|
||||
</td>
|
||||
<td valign="top">{% human_readable_date task_state.started_at %}</td>
|
||||
</tr>
|
||||
{% endwith %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endpanel %}
|
||||
|
||||
<script src="{% versioned_static 'wagtailadmin/js/workflow-action.js' %}" data-activate="dashboard"></script>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user