mirror of
https://github.com/vbatts/imgsrv.git
synced 2024-12-29 00:36:32 +00:00
layouts: the contenttype is a function, not a field
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
3c6deccbea
commit
23ead5239c
1 changed files with 2 additions and 2 deletions
|
@ -209,7 +209,7 @@ var fileViewAudioTemplateHTML = `
|
|||
{{if .}}
|
||||
<a href="/f/{{.Filename}}">
|
||||
<audio controls>
|
||||
<source src="/f/{{.Filename}}" type="{{.ContentType}}">
|
||||
<source src="/f/{{.Filename}}" />
|
||||
Your browser does not support the video tag.
|
||||
</audio>
|
||||
</a>
|
||||
|
@ -221,7 +221,7 @@ var fileViewVideoTemplateHTML = `
|
|||
{{if .}}
|
||||
<a href="/f/{{.Filename}}">
|
||||
<video width="320" height="240" controls>
|
||||
<source src="/f/{{.Filename}}" type="{{.ContentType}}">
|
||||
<source src="/f/{{.Filename}}" />
|
||||
Your browser does not support the video tag.
|
||||
</video>
|
||||
</a>
|
||||
|
|
Loading…
Reference in a new issue