mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
22 lines
744 B
Cheetah
22 lines
744 B
Cheetah
{{ define "content" }}
|
|
{{ with .Data}}
|
|
<main class="container">
|
|
{{ if eq .Type "image" }}
|
|
<center><img src="{{ .URL }}?raw=true"></center>
|
|
{{ else if eq .Type "audio" }}
|
|
<audio src="{{ .URL }}?raw=true" controls></audio>
|
|
{{ else if eq .Type "video" }}
|
|
<video src="{{ .URL }}?raw=true" controls>
|
|
Sorry, your browser doesn't support embedded videos,
|
|
but don't worry, you can <a href="?download=true">download it</a>
|
|
and watch it with your favorite video player!
|
|
</video>
|
|
{{ else if eq .Type "blob" }}
|
|
<a href="?download=true"><h2 class="message">Download <i class="material-icons">file_download</i></h2></a>
|
|
{{ else}}
|
|
<pre>{{ .StringifyContent }}</pre>
|
|
{{ end }}
|
|
</main>
|
|
{{ end }}
|
|
{{ end }}
|