diff options
author | 2025-01-24 15:02:13 +0000 | |
---|---|---|
committer | 2025-01-24 16:02:13 +0100 | |
commit | 3720251fcaf0362275aa71d5ff1efcbdcc226374 (patch) | |
tree | 41e082984867cd8a9ea3cf4df4971adfcede063c | |
parent | [feature] Push notifications (#3587) (diff) | |
download | gotosocial-3720251fcaf0362275aa71d5ff1efcbdcc226374.tar.xz |
[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
-rw-r--r-- | web/source/css/status.css | 6 | ||||
-rw-r--r-- | web/template/status_info.tmpl | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/web/source/css/status.css b/web/source/css/status.css index 97713dae2..f08310921 100644 --- a/web/source/css/status.css +++ b/web/source/css/status.css @@ -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; } diff --git a/web/template/status_info.tmpl b/web/template/status_info.tmpl index c5ba3ef35..366300071 100644 --- a/web/template/status_info.tmpl +++ b/web/template/status_info.tmpl @@ -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> |