From deba75cad14f47bb42ea55e7d126d3adea7855a6 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Sun, 2 Oct 2022 15:54:42 +0200 Subject: [chore] Use shorter timestamps in frontend for replies (#875) * rename timestampShort -> timestampVague * add ParseISO8601 * start fiddling with timestamp * pad/margin a bit more consistently * remove visibilty icon, change timestamp use * update timestamp logic * check + log errors * properly cut-off long display- and usernames Co-authored-by: f0x --- web/template/profile.tmpl | 2 +- web/template/status.tmpl | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'web/template') diff --git a/web/template/profile.tmpl b/web/template/profile.tmpl index 4c348d028..145ff95f4 100644 --- a/web/template/profile.tmpl +++ b/web/template/profile.tmpl @@ -21,7 +21,7 @@
-
Joined {{.account.CreatedAt | timestampShort}}
+
Joined {{.account.CreatedAt | timestampVague}}
Followed by {{.account.FollowersCount}}
Following {{.account.FollowingCount}}
Posted {{.account.StatusesCount}}
diff --git a/web/template/status.tmpl b/web/template/status.tmpl index 5136b6ad7..bff1fb692 100644 --- a/web/template/status.tmpl +++ b/web/template/status.tmpl @@ -3,7 +3,6 @@ {{if .Account.DisplayName}}{{emojify .Account.Emojis (escape .Account.DisplayName)}}{{else}}{{.Account.Username}}{{end}} @{{.Account.Acct}}
- {{.Visibility | visibilityIcon}} {{.CreatedAt | timestamp}}
@@ -45,7 +44,7 @@ {{end}}
-
{{.CreatedAt | timestamp}}
+
{{.CreatedAt | timestampPrecise}}
{{.RepliesCount}}
{{.ReblogsCount}}
-- cgit v1.3