By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 file-view.html

View raw Download
text/html • 1.02 kiB
HTML document, ASCII text
        
            
1
<x-hbox style="align-items: center;">
2
<h1 style="display: flex; align-items: center; text-overflow: ellipsis; overflow: hidden;" title="{{ basename }}"><iconify-icon icon="{{ icon }}"></iconify-icon>&nbsp;{{ basename }}</h1>
3
<div class="flexible-space"></div>
4
<x-buttonbox>
5
<a href="{{ file }}" class="button">View raw</a>
6
<a href="{{ file }}" download class="button">Download</a>
7
</x-buttonbox>
8
</x-hbox>
9
{{ mimetype }} &bull; {{ size[0] }}&nbsp;{{ size[1] }}
10
<br>
11
{{ detailedtype }}
12
13
{% if mode == "text" %}
14
<pre>{{ contents }}</pre>
15
{% elif mode == "image" %}
16
<img src="{{ file }}">
17
{% elif mode == "audio" %}
18
<audio controls src="{{ file }}" style="width: 100%;">
19
Your browser does not support HTML5 multimedia.
20
<a href="{{ file }}">Download file</a>
21
</audio>
22
{% elif mode == "video" %}
23
<video controls src="{{ file }}" style="width: 100%;">
24
Your browser does not support HTML5 multimedia.
25
<a href="{{ file }}">Download file</a>
26
</video>
27
{% endif %}