mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-02-04 23:27:09 +01: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
2 changed files with 13 additions and 1 deletions
|
@ -436,6 +436,10 @@ main {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
column-gap: 1rem;
|
column-gap: 1rem;
|
||||||
|
|
||||||
|
.edited-at {
|
||||||
|
font-style: italic;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.stats-item {
|
.stats-item {
|
||||||
|
@ -443,7 +447,7 @@ main {
|
||||||
gap: 0.4rem;
|
gap: 0.4rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.stats-item:not(.published-at) {
|
.stats-item:not(.published-at):not(.edited-at) {
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -26,6 +26,14 @@
|
||||||
<time datetime="{{- .CreatedAt -}}">{{- .CreatedAt | timestampPrecise -}}</time>
|
<time datetime="{{- .CreatedAt -}}">{{- .CreatedAt | timestampPrecise -}}</time>
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</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-grouping">
|
||||||
<div class="stats-item" title="Replies">
|
<div class="stats-item" title="Replies">
|
||||||
<dt>
|
<dt>
|
||||||
|
|
Loading…
Reference in a new issue