From 3720251fcaf0362275aa71d5ff1efcbdcc226374 Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Fri, 24 Jan 2025 15:02:13 +0000 Subject: [PATCH] [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 --- web/source/css/status.css | 6 +++++- web/template/status_info.tmpl | 8 ++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) 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 @@ + {{- if .EditedAt -}} +
+
Edited
+
+ (last edited ) +
+
+ {{ end }}