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" }}
|
2017-01-02 19:55:21 +00:00
|
|
|
<center><img src="{{ .URL }}?raw=true"></center>
|
2016-06-22 21:18:21 +00:00
|
|
|
{{ else if eq .Type "audio" }}
|
2016-12-29 22:50:36 +00:00
|
|
|
<audio src="{{ .URL }}?raw=true" controls></audio>
|
2016-06-22 21:18:21 +00:00
|
|
|
{{ 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" }}
|
2017-01-02 19:55:21 +00:00
|
|
|
<a href="?download=true"><h2 class="message">Download <i class="material-icons">file_download</i></h2></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 }}
|