kopia lustrzana https://github.com/wagtail/wagtail
Add workflow submitted by data in home panel
rodzic
4550bba562
commit
f3f35f6322
|
@ -23,6 +23,7 @@ Changelog
|
|||
* Improve implementations of visually-hidden text in explorer and main menu toggle (Martin Coote)
|
||||
* Add locale labels to page listings (Dan Braghis)
|
||||
* Change release check domain to releases.wagtail.org (Jake Howard)
|
||||
* Add the user who submitted a page for moderation to the "Awaiting your review" homepage summary panel (Tidiane Dia)
|
||||
* Fix: Accessibility fixes for Windows high contrast mode; Dashboard icons colour and contrast (Sakshi Uppoor)
|
||||
* Fix: Rename additional 'spin' CSS animations to avoid clashes with other libraries (Kevin Gutiérrez)
|
||||
* Fix: `default_app_config` deprecations for Django >= 3.2 (Tibor Leupold)
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
* Improve the visibility of field error messages, in Windows high-contrast mode and out (Jason Attwood)
|
||||
* Improve implementations of visually-hidden text in explorer and main menu toggle (Martin Coote)
|
||||
* Add locale labels to page listings (Dan Braghis)
|
||||
* Add the user who submitted a page for moderation to the "Awaiting your review" homepage summary panel (Tidiane Dia)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
|
|
|
@ -5,12 +5,14 @@
|
|||
<div class="object-layout">
|
||||
<table class="listing">
|
||||
<col />
|
||||
<col width="30%"/>
|
||||
<col width="15%"/>
|
||||
<col width="15%"/>
|
||||
<col width="15%"/>
|
||||
<thead>{# Note: the header is visually hidden behind .title-wrapper #}
|
||||
<tr>
|
||||
<th class="title">{% trans "Title" %}</th>
|
||||
<th>{% trans "Tasks" %}</th>
|
||||
<th>{% trans "Task submitted by" %}</th>
|
||||
<th>{% trans "Task started" %}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
@ -63,6 +65,9 @@
|
|||
</span>
|
||||
{% endfor %}
|
||||
</td>
|
||||
<td valign="top">
|
||||
{% if revision.user %}{{ revision.user|user_display_name }}{% endif %}
|
||||
</td>
|
||||
<td valign="top">
|
||||
<div class="human-readable-date" title="{{ task_state.started_at|date:"DATETIME_FORMAT" }}">{% blocktrans with time_period=task_state.started_at|timesince_simple %}{{ time_period }}{% endblocktrans %}</div>
|
||||
</td>
|
||||
|
|
|
@ -90,7 +90,7 @@ class WorkflowPagesToModeratePanel(Component):
|
|||
if getattr(settings, 'WAGTAIL_WORKFLOW_ENABLED', True):
|
||||
states = (
|
||||
TaskState.objects.reviewable_by(request.user)
|
||||
.select_related('page_revision', 'task', 'page_revision__page')
|
||||
.select_related('page_revision', 'task', 'page_revision__page', 'page_revision__user')
|
||||
.order_by('-started_at')
|
||||
)
|
||||
context['states'] = [
|
||||
|
|
Ładowanie…
Reference in New Issue