2016-06-11 13:32:50 +00:00
|
|
|
{{ define "content" }}
|
2016-08-21 19:10:12 +00:00
|
|
|
{{ with .Data}}
|
2016-06-22 21:18:21 +00:00
|
|
|
<main class="container">
|
2016-06-11 13:32:50 +00:00
|
|
|
{{ if eq .Type "image" }}
|
2016-06-22 21:18:21 +00:00
|
|
|
<img src="{{ .URL }}?raw=true">
|
|
|
|
{{ else if eq .Type "audio" }}
|
|
|
|
<audio src="{{ .URL }}?raw=true"></audio>
|
|
|
|
{{ else if eq .Type "video" }}
|
2016-10-22 12:46:10 +00:00
|
|
|
<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>
|
2016-10-22 10:47:49 +00:00
|
|
|
{{ else if eq .Type "blob" }}
|
|
|
|
<a href="?download=true">Download</a>
|
2016-06-22 21:18:21 +00:00
|
|
|
{{ else}}
|
2016-10-18 20:06:31 +00:00
|
|
|
<pre>{{ .StringifyContent }}</pre>
|
2016-06-11 13:32:50 +00:00
|
|
|
{{ end }}
|
2016-06-22 21:18:21 +00:00
|
|
|
</main>
|
2016-08-21 19:10:12 +00:00
|
|
|
{{ end }}
|
2016-06-11 13:32:50 +00:00
|
|
|
{{ end }}
|