move assets

This commit is contained in:
Henrique Dias
2016-10-22 12:11:08 +01:00
parent 5fce287cd2
commit 17eff65b0d
14 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
{{ 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 }}