diff options
author | r <r@freesoftwareextremist.com> | 2022-03-30 17:59:42 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2022-03-30 17:59:42 +0000 |
commit | 94ff5c93ded09cf6d9cff3e18969df3e9c6cb186 (patch) | |
tree | 6c01fe9ef1f11192bcc98f67b597fe200a608f80 | |
parent | 71238ab7bc2bddebf4237af4bcf9eb52b793a185 (diff) | |
download | bloat-94ff5c93ded09cf6d9cff3e18969df3e9c6cb186.tar.gz bloat-94ff5c93ded09cf6d9cff3e18969df3e9c6cb186.zip |
Show attachment metadata when attachment preview is disabled
-rw-r--r-- | templates/status.tmpl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/status.tmpl b/templates/status.tmpl index fd0940f..5ada84e 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -103,7 +103,7 @@ {{if eq .Type "image"}} {{if $.Ctx.HideAttachments}} <a href="{{.URL}}" target="_blank"> - {{if .Description}}[{{.Description}}]{{else}}[image]{{end}} + [image{{if $s.Sensitive}}/nsfw{{end}}{{if .Description}}: {{.Description}}{{end}}] </a> {{else}} <a class="img-link" href="{{.URL}}" target="_blank" title="{{.Description}}"> @@ -117,7 +117,7 @@ {{else if eq .Type "audio"}} {{if $.Ctx.HideAttachments}} <a href="{{.URL}}" target="_blank"> - {{if .Description}}[{{.Description}}]{{else}}[audio]{{end}} + [audio{{if $s.Sensitive}}/nsfw{{end}}{{if .Description}}: {{.Description}}{{end}}] </a> {{else}} <audio class="status-audio" controls title="{{.Description}}"> @@ -129,7 +129,7 @@ {{else if eq .Type "video"}} {{if $.Ctx.HideAttachments}} <a href="{{.URL}}" target="_blank"> - {{if .Description}}[{{.Description}}]{{else}}[video]{{end}} + [video{{if $s.Sensitive}}/nsfw{{end}}{{if .Description}}: {{.Description}}{{end}}] </a> {{else}} <div class="status-video-container" title="{{.Description}}"> @@ -145,7 +145,7 @@ {{else}} <a href="{{.URL}}" target="_blank"> - {{if .Description}}[{{.Description}}]{{else}}[attachment]{{end}} + [attachment{{if $s.Sensitive}}/nsfw{{end}}{{if .Description}}: {{.Description}}{{end}}] </a> {{end}} {{end}} |