kopia lustrzana https://github.com/wagtail/wagtail
Consistently include the word 'ago' when using the timesince filter
rodzic
ad9468b550
commit
55adcf63c6
|
@ -29,7 +29,7 @@
|
|||
{% endif %}
|
||||
</ul>
|
||||
</td>
|
||||
<td valign="top"><div class="human-readable-date" title="{{ revision.created_at|date:"d M Y H:i" }}">{{ revision.created_at|timesince }}</div></td>
|
||||
<td valign="top"><div class="human-readable-date" title="{{ revision.created_at|date:"d M Y H:i" }}">{{ revision.created_at|timesince }} ago</div></td>
|
||||
<td valign="top">
|
||||
{% if revision.page.live %}
|
||||
<a href="{{ revision.page.url }}" target="_blank" class="status-tag {% if revision.page.status_string != "draft" %}primary{% endif %}">{{ revision.page.status_string }}</a>
|
||||
|
|
|
@ -98,7 +98,7 @@
|
|||
</ul>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="updated" valign="bottom"><div class="human-readable-date" title="{{ parent_page.latest_revision_created_at|date:"d M Y H:i" }}">{{ parent_page.latest_revision_created_at|timesince }}</div></td>
|
||||
<td class="updated" valign="bottom">{% if parent_page.latest_revision_created_at %}<div class="human-readable-date" title="{{ parent_page.latest_revision_created_at|date:"d M Y H:i" }}">{{ parent_page.latest_revision_created_at|timesince }} ago</div>{% endif %}</td>
|
||||
<td class="type" valign="bottom">{{ parent_page.content_type.model_class.get_verbose_name }}</td>
|
||||
<td class="status" valign="bottom">
|
||||
{% if not choosing and not moving and parent_page.live and not parent_page.is_root and 'view_live' not in hide_actions|default:'' %}
|
||||
|
@ -242,7 +242,7 @@
|
|||
</td>
|
||||
{% endwith %}
|
||||
{% endif %}
|
||||
<td class="updated" valign="top"><div class="human-readable-date" title="{{ page.latest_revision_created_at|date:"d M Y H:i" }}">{{ page.latest_revision_created_at|timesince }}</div></td>
|
||||
<td class="updated" valign="top">{% if page.latest_revision_created_at %}<div class="human-readable-date" title="{{ page.latest_revision_created_at|date:"d M Y H:i" }}">{{ page.latest_revision_created_at|timesince }} ago</div>{% endif %}</td>
|
||||
<td class="type" valign="top">{{ page.content_type.model_class.get_verbose_name }}</td>
|
||||
<td class="status" valign="top">
|
||||
{% if not choosing and not moving and page.live and 'view_live' not in hide_actions|default:'' %}
|
||||
|
|
Ładowanie…
Reference in New Issue