mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-01-26 16:11:55 +00:00
[feature] show status edits on frontend (#3678)
* add 'edited-at' field to status info web template * make the edited-at text italic * small change in phrasing
This commit is contained in:
parent
5b765d734e
commit
3720251fca
|
@ -436,6 +436,10 @@ main {
|
|||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
column-gap: 1rem;
|
||||
|
||||
.edited-at {
|
||||
font-style: italic;
|
||||
}
|
||||
}
|
||||
|
||||
.stats-item {
|
||||
|
@ -443,7 +447,7 @@ main {
|
|||
gap: 0.4rem;
|
||||
}
|
||||
|
||||
.stats-item:not(.published-at) {
|
||||
.stats-item:not(.published-at):not(.edited-at) {
|
||||
z-index: 1;
|
||||
user-select: none;
|
||||
}
|
||||
|
|
|
@ -26,6 +26,14 @@
|
|||
<time datetime="{{- .CreatedAt -}}">{{- .CreatedAt | timestampPrecise -}}</time>
|
||||
</dd>
|
||||
</div>
|
||||
{{- if .EditedAt -}}
|
||||
<div class="stats-item edited-at text-cutoff">
|
||||
<dt class="sr-only">Edited</dt>
|
||||
<dd>
|
||||
(last edited <time datetime="{{- .EditedAt -}}">{{- .EditedAt | timestampPrecise -}}</time>)
|
||||
</dd>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="stats-grouping">
|
||||
<div class="stats-item" title="Replies">
|
||||
<dt>
|
||||
|
|
Loading…
Reference in a new issue