Restore missing created/updated times for object views
This commit is contained in:
parent
856956afce
commit
b59c1c693d
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -303,7 +303,6 @@ div.title-container {
|
|||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
|
||||
div#content-title {
|
||||
display: flex;
|
||||
|
|
|
|||
|
|
@ -126,6 +126,7 @@
|
|||
<div id="content-title">
|
||||
{# Center-align title in object-edit views #}
|
||||
<h1 class="h2 w-100">{% block title %}{% endblock title %}</h1>
|
||||
{% block subtitle %}{% endblock %}
|
||||
</div>
|
||||
|
||||
{# Controls #}
|
||||
|
|
|
|||
|
|
@ -19,6 +19,14 @@
|
|||
|
||||
{% block title %}{{ object }}{% endblock %}
|
||||
|
||||
{% block subtitle %}
|
||||
<small class="text-muted">
|
||||
Created {{ object.created|annotated_date }} ·
|
||||
Updated <span title="{{ object.last_updated }}">{{ object.last_updated|timesince }}</span> ago
|
||||
<span class="badge bg-secondary">{{ object|meta:"app_label" }}.{{ object|meta:"model_name" }}:{{ object.pk }}</span>
|
||||
</small>
|
||||
{% endblock %}
|
||||
|
||||
{% block controls %}
|
||||
{# Clone/Edit/Delete Buttons #}
|
||||
<div class="controls pb-2 mx-0">
|
||||
|
|
@ -70,14 +78,3 @@
|
|||
{% endif %}
|
||||
</ul>
|
||||
{% endblock tabs %}
|
||||
|
||||
{% block content %}
|
||||
<p>
|
||||
<small class="text-muted">
|
||||
Created {{ object.created|annotated_date }} ·
|
||||
Updated <span title="{{ object.last_updated|annotated_date }}">{{ object.last_updated|timesince }}</span> ago
|
||||
</small>
|
||||
<span class="badge bg-primary">{{ object|meta:"app_label" }}.{{ object|meta:"model_name" }}:{{ object.pk }}</span>
|
||||
</p>
|
||||
{% endblock content %}
|
||||
{% block components %}{% endblock %}
|
||||
|
|
|
|||
Loading…
Reference in New Issue