mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
18 lines
438 B
Cheetah
18 lines
438 B
Cheetah
{{ define "content" }}
|
|
{{ with .Data}}
|
|
<main class="container">
|
|
{{ if eq .Type "image" }}
|
|
<img src="{{ .URL }}?raw=true">
|
|
{{ else if eq .Type "audio" }}
|
|
<audio src="{{ .URL }}?raw=true"></audio>
|
|
{{ else if eq .Type "video" }}
|
|
<!-- TODO: SHOW VIDEO ? -->
|
|
{{ else if eq .Type "blob" }}
|
|
<a href="?download=true">Download</a>
|
|
{{ else}}
|
|
<pre>{{ .StringifyContent }}</pre>
|
|
{{ end }}
|
|
</main>
|
|
{{ end }}
|
|
{{ end }}
|