mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-12-22 11:23:33 +02:00
Show attachment metadata when attachment preview is disabled
This commit is contained in:
parent
71238ab7bc
commit
94ff5c93de
1 changed files with 4 additions and 4 deletions
|
@ -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}}
|
||||
|
|
Loading…
Reference in a new issue