Add created/updated dates to product and content pages
Show subtle date metadata at the bottom of the description section with muted text and a light border separator. Only shows "Updated" when it differs from the created date.
This commit is contained in:
parent
1eca7a3145
commit
875183d201
3 changed files with 16 additions and 0 deletions
|
|
@ -2133,6 +2133,14 @@ img.crypto-button-icon {
|
|||
font-weight: normal;
|
||||
}
|
||||
|
||||
.product-meta-dates {
|
||||
color: var(--text-muted);
|
||||
font-size: 0.8em;
|
||||
margin-top: 20px;
|
||||
padding-top: 12px;
|
||||
border-top: 1px solid var(--border-light);
|
||||
}
|
||||
|
||||
.original-comment-box {
|
||||
background-color: #f5f5f5;
|
||||
padding: 15px;
|
||||
|
|
|
|||
|
|
@ -83,6 +83,10 @@
|
|||
{{ product.get_content_type("product") }} {{ product_size }}
|
||||
<br/>
|
||||
{% endif %}
|
||||
|
||||
<div class="product-meta-dates">
|
||||
Created {{ product.human_created_timestamp }}{% if product.human_created_timestamp != product.human_updated_timestamp %} · Updated {{ product.human_updated_timestamp }}{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="product-comments">
|
||||
|
|
|
|||
|
|
@ -158,6 +158,10 @@
|
|||
<br/>
|
||||
Please make sure you have an application to open this file type.
|
||||
{% endif %}
|
||||
|
||||
<div class="product-meta-dates">
|
||||
Created {{ product.human_created_timestamp }}{% if product.human_created_timestamp != product.human_updated_timestamp %} · Updated {{ product.human_updated_timestamp }}{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="product-comments">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue