diff options
Diffstat (limited to 'templates/repo/view_file.tmpl')
-rw-r--r-- | templates/repo/view_file.tmpl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 6c37aab58a..07d1075b13 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -55,6 +55,10 @@ <video controls src="{{EscapePound $.RawFileLink}}"> <strong>{{.i18n.Tr "repo.video_not_supported_in_browser"}}</strong> </video> + {{else if .IsAudioFile}} + <audio controls src="{{EscapePound $.RawFileLink}}"> + <strong>{{.i18n.Tr "repo.audio_not_supported_in_browser"}}</strong> + </audio> {{else if .IsPDFFile}} <iframe width="100%" height="600px" src="{{AppSubUrl}}/vendor/plugins/pdfjs/web/viewer.html?file={{EscapePound $.RawFileLink}}"></iframe> {{else}} |