aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2020-05-24 06:44:22 +0000
committerr <r@freesoftwareextremist.com>2020-05-24 06:44:22 +0000
commit0eaf8e8c876d9a7014404345a11922718a329905 (patch)
treeea6fdfdffb43a832d708ad50278152da2257be05 /templates
parentf3367d920d151727bf5703a364c7d39ae24071d7 (diff)
downloadbloat-0eaf8e8c876d9a7014404345a11922718a329905.tar.gz
bloat-0eaf8e8c876d9a7014404345a11922718a329905.zip
Use attachment description as title
Diffstat (limited to 'templates')
-rw-r--r--templates/status.tmpl14
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/status.tmpl b/templates/status.tmpl
index c817da2..18e6d9a 100644
--- a/templates/status.tmpl
+++ b/templates/status.tmpl
@@ -78,9 +78,9 @@
{{if eq .Type "image"}}
{{if $.Ctx.HideAttachments}}
- <a href="{{.URL}}" target="_blank"> [image] </a>
+ <a href="{{.URL}}" target="_blank" title="{{.Description}}"> [image] </a>
{{else}}
- <a class="img-link" href="{{.URL}}" target="_blank">
+ <a class="img-link" href="{{.URL}}" target="_blank" title="{{.Description}}">
<img class="status-image" src="{{.URL}}" alt="status-image" />
{{if (and $.Ctx.MaskNSFW $s.Sensitive)}}
<div class="status-nsfw-overlay"></div>
@@ -90,9 +90,9 @@
{{else if eq .Type "audio"}}
{{if $.Ctx.HideAttachments}}
- <a href="{{.URL}}" target="_blank"> [audio] </a>
+ <a href="{{.URL}}" target="_blank" title="{{.Description}}"> [audio] </a>
{{else}}
- <audio class="status-audio" controls>
+ <audio class="status-audio" controls title="{{.Description}}">
<source src="{{.URL}}">
<a href="{{.URL}}" target="_blank"> [audio] </a>
</audio>
@@ -100,9 +100,9 @@
{{else if eq .Type "video"}}
{{if $.Ctx.HideAttachments}}
- <a href="{{.URL}}" target="_blank"> [video] </a>
+ <a href="{{.URL}}" target="_blank" title="{{.Description}}"> [video] </a>
{{else}}
- <div class="status-video-container">
+ <div class="status-video-container" title="{{.Description}}">
<video class="status-video" controls>
<source src="{{.URL}}">
<a href="{{.URL}}" target="_blank"> [video] </a>
@@ -114,7 +114,7 @@
{{end}}
{{else}}
- <a href="{{.URL}}" target="_blank"> [attachment] </a>
+ <a href="{{.URL}}" target="_blank" title="{{.Description}}"> [attachment] </a>
{{end}}
{{end}}