Former-commit-id: 8c76980725c6306fce5794cb54e37672bae17637
This commit is contained in:
Henrique Dias
2017-01-02 19:55:21 +00:00
parent 2619f57170
commit e8969f4edf
2 changed files with 16 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
{{ with .Data}}
<main class="container">
{{ if eq .Type "image" }}
<img src="{{ .URL }}?raw=true">
<center><img src="{{ .URL }}?raw=true"></center>
{{ else if eq .Type "audio" }}
<audio src="{{ .URL }}?raw=true" controls></audio>
{{ else if eq .Type "video" }}
@@ -12,7 +12,7 @@
and watch it with your favorite video player!
</video>
{{ else if eq .Type "blob" }}
<a href="?download=true">Download</a>
<a href="?download=true"><h2 class="message">Download <i class="material-icons">file_download</i></h2></a>
{{ else}}
<pre>{{ .StringifyContent }}</pre>
{{ end }}