diff options
author | 2022-10-02 15:54:42 +0200 | |
---|---|---|
committer | 2022-10-02 15:54:42 +0200 | |
commit | deba75cad14f47bb42ea55e7d126d3adea7855a6 (patch) | |
tree | a83c673900d827bb8cc3bb4a4d60cc37651e91be /web/template/status.tmpl | |
parent | fix emojis not showing in spoiler text (#878) (diff) | |
download | gotosocial-deba75cad14f47bb42ea55e7d126d3adea7855a6.tar.xz |
[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 <f0x@cthu.lu>
Diffstat (limited to 'web/template/status.tmpl')
-rw-r--r-- | web/template/status.tmpl | 3 |
1 files changed, 1 insertions, 2 deletions
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 @@ <a href="{{.Account.URL}}" class="displayname">{{if .Account.DisplayName}}{{emojify .Account.Emojis (escape .Account.DisplayName)}}{{else}}{{.Account.Username}}{{end}}</a> <a href="{{.Account.URL}}" class="username">@{{.Account.Acct}}</a> <div class="not-expanded"> - <span class="visibility">{{.Visibility | visibilityIcon}}</span> <span class="date">{{.CreatedAt | timestamp}}</span> </div> <div class="text"> @@ -45,7 +44,7 @@ {{end}} </div> <div class="info"> - <div id="date">{{.CreatedAt | timestamp}}</div> + <div id="date">{{.CreatedAt | timestampPrecise}}</div> <div class="stats"> <div id="replies"><i aria-label="Replies" class="fa fa-reply-all"></i> {{.RepliesCount}}</div> <div id="boosts"><i aria-label="Boosts" class="fa fa-retweet"></i> {{.ReblogsCount}}</div> |