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/status.tmpl | 80 +++++++++++++++++++++++---------------------------- 1 file changed, 36 insertions(+), 44 deletions(-) (limited to 'templates/status.tmpl') diff --git a/templates/status.tmpl b/templates/status.tmpl index 0b09dfb..503b6f1 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -1,15 +1,15 @@ {{with .Data}} -
+
{{if .Reblog}}
- avatar + @{{.Account.Acct}} {{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}} @{{.Account.Acct}} - retweeted + retweeted
{{template "status" (WithContext .Reblog $.Ctx)}} {{else}} @@ -18,26 +18,20 @@
{{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}} - - @{{.Account.Acct}} - + @{{.Account.Acct}}
- - source - - - quickreply - + source + quickreply {{if .Muted}}
@@ -76,6 +70,7 @@
+ {{if (or .InReplyToID .ShowReplies)}} + {{end}} {{if (or .Content .SpoilerText)}}
- {{- if .SpoilerText}}{{EmojiFilter (HTML .SpoilerText) .Emojis | Raw}}
{{end -}} + {{- if .SpoilerText}}{{EmojiFilter (HTML .SpoilerText) .Emojis | Raw}}
{{end -}} {{- StatusContentFilter .Content .Emojis .Mentions | Raw -}}
{{end}} @@ -100,42 +96,36 @@
{{range .MediaAttachments}} - {{if eq .Type "image"}} + {{- if eq .Type "image" -}} {{if $.Ctx.HideAttachments}} - - [image{{if $s.Sensitive}}/nsfw{{end}}{{if .Description}}: {{.Description}}{{end}}] - - {{else}} - - status-image + [image{{if $s.Sensitive}}/nsfw{{end}}{{if .Description}}: {{.Description}}{{end}}] + {{- else -}} + + {{.Description}} {{if (and $.Ctx.MaskNSFW $s.Sensitive)}}
{{end}}
- {{end}} + {{- end -}} {{else if eq .Type "audio"}} {{if $.Ctx.HideAttachments}} - - [audio{{if $s.Sensitive}}/nsfw{{end}}{{if .Description}}: {{.Description}}{{end}}] - + [audio{{if $s.Sensitive}}/nsfw{{end}}{{if .Description}}: {{.Description}}{{end}}] {{else}} {{end}} {{else if eq .Type "video"}} {{if $.Ctx.HideAttachments}} - - [video{{if $s.Sensitive}}/nsfw{{end}}{{if .Description}}: {{.Description}}{{end}}] - + [video{{if $s.Sensitive}}/nsfw{{end}}{{if .Description}}: {{.Description}}{{end}}] {{else}} {{end}} {{if .Poll}} - + {{range $i, $o := .Poll.Options}} -
+
{{if (or $s.Poll.Expired $s.Poll.Voted)}}
{{EmojiFilter (HTML $o.Title) $s.Emojis | Raw}} - {{$o.VotesCount}} votes
{{else}} @@ -170,9 +158,11 @@
{{end}} {{if not (or .Poll.Expired .Poll.Voted)}} +
+
{{end}} - +
{{end}} -- cgit v1.2.3