From 7c6c0cd547f356d5309bda2478a69ea9346c74b6 Mon Sep 17 00:00:00 2001 From: f0x52 Date: Tue, 21 Jun 2022 10:48:42 +0200 Subject: [frontend] Profile pages upgrade (#640) * fix css indentation * profile styling update * update status styling to match profile * empty header fix * generate random avatars for thread views * appease the linter gods * upgrade deps * turn profile accent into border + $bg background * upgrade deps * small accessibility tweaks Co-authored-by: tobi <31960611+tsmethurst@users.noreply.github.com> --- web/template/header.tmpl | 2 +- web/template/profile.tmpl | 28 ++++++++++++++++------------ web/template/status.tmpl | 2 +- 3 files changed, 18 insertions(+), 14 deletions(-) (limited to 'web/template') diff --git a/web/template/header.tmpl b/web/template/header.tmpl index 86f5cca89..b355c83be 100644 --- a/web/template/header.tmpl +++ b/web/template/header.tmpl @@ -18,7 +18,7 @@
- +
Instance Logo
diff --git a/web/template/profile.tmpl b/web/template/profile.tmpl index b1c3aa571..f05ce696e 100644 --- a/web/template/profile.tmpl +++ b/web/template/profile.tmpl @@ -1,28 +1,32 @@ {{ template "header.tmpl" .}}
- {{ if .account.Header }}{{ end }}
+
+ {{ if .account.Header }} + {{if .account.DisplayName}}{{.account.DisplayName}}{{else}}{{.account.Username}}{{end}}'s header + {{ end }} +
-

About @{{.account.Username}}

{{ if .account.Note }}{{ .account.Note | noescape }}{{else}}This GoToSocial user hasn't written a bio yet!{{end}}
+
+
Joined {{.account.CreatedAt | timestampShort}}
+
Followed by {{.account.FollowersCount}}
+
Following {{.account.FollowingCount}}
+
Posted {{.account.StatusesCount}}
+
-
-
Joined {{.account.CreatedAt | timestampShort}}
-
Followed by {{.account.FollowersCount}}
-
Following {{.account.FollowingCount}}
-
Posted {{.account.StatusesCount}}
-
-

Recent public posts by @{{.account.Username}}

+

Recent public toots

{{range .statuses}}
diff --git a/web/template/status.tmpl b/web/template/status.tmpl index 343eb2d0a..4fea3ef6f 100644 --- a/web/template/status.tmpl +++ b/web/template/status.tmpl @@ -1,4 +1,4 @@ - + {{if .Account.DisplayName}}{{.Account.DisplayName}}{{else}}{{.Account.Username}}{{end}} @{{.Account.Username}}
-- cgit v1.3