From 1d61f1aa27376e778b7a517fdd5739a8c1976d2e Mon Sep 17 00:00:00 2001 From: r Date: Thu, 28 Dec 2023 13:27:30 +0000 Subject: Update the default theme This uses better color contrast and component spacing to improve legibility. The updated HTML also has better compatibility with browsers with limited/no CSS support. --- templates/user.tmpl | 60 ++++++++++++++++++++++++++--------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) (limited to 'templates/user.tmpl') diff --git a/templates/user.tmpl b/templates/user.tmpl index 3b1a5cd..1ae75f9 100644 --- a/templates/user.tmpl +++ b/templates/user.tmpl @@ -1,11 +1,11 @@ {{with .Data}} {{template "header.tmpl" (WithContext .CommonData $.Ctx)}} -
User
+

User

{{end}}
- statuses ({{.User.StatusesCount}}) - - following ({{.User.FollowingCount}}) - - followers ({{.User.FollowersCount}}) - - media + statuses ({{.User.StatusesCount}}) - + following ({{.User.FollowingCount}}) - + followers ({{.User.FollowersCount}}) - + media
{{if .IsCurrent}}
- bookmarks - - likes - - mutes - - blocks - {{if .User.Locked}}- requests {{end}} + bookmarks + - likes + - mutes + - blocks + {{if .User.Locked}}- requests{{end}}
{{end}}
- search statuses - {{if .IsCurrent}} - filters {{end}} + search statuses + {{if .IsCurrent}} - filters {{end}}
-
+ {{if .User.Fields}} @@ -131,63 +131,63 @@
{{if eq .Type ""}} -
Statuses
+

Statuses

{{range .Statuses}} {{template "status.tmpl" (WithContext . $.Ctx)}} {{else}} -
No data found
+

No data found

{{end}} {{else if eq .Type "following"}} -
Following
+

Following

{{template "userlist.tmpl" (WithContext .Users $.Ctx)}} {{else if eq .Type "followers"}} -
Followers
+

Followers

{{template "userlist.tmpl" (WithContext .Users $.Ctx)}} {{else if eq .Type "media"}} -
Statuses with media
+

Statuses with media

{{range .Statuses}} {{template "status.tmpl" (WithContext . $.Ctx)}} {{else}} -
No data found
+

No data found

{{end}} {{else if eq .Type "bookmarks"}} -
Bookmarks
+

Bookmarks

{{range .Statuses}} {{template "status.tmpl" (WithContext . $.Ctx)}} {{else}} -
No data found
+

No data found

{{end}} {{else if eq .Type "likes"}} -
Likes
+

Likes

{{range .Statuses}} {{template "status.tmpl" (WithContext . $.Ctx)}} {{else}} -
No data found
+

No data found

{{end}} {{else if eq .Type "mutes"}} -
Mutes
+

Mutes

{{template "userlist.tmpl" (WithContext .Users $.Ctx)}} {{else if eq .Type "blocks"}} -
Blocks
+

Blocks

{{template "userlist.tmpl" (WithContext .Users $.Ctx)}} {{else if eq .Type "requests"}} -
Follow requests
+

Follow requests

{{template "requestlist.tmpl" (WithContext .Users $.Ctx)}} {{end}} - + {{template "footer.tmpl"}} {{end}} -- cgit v1.2.3