summaryrefslogtreecommitdiff
path: root/mediabrowser/templates/listdir.html
blob: 27cfdc8ce3e3b7b576617c08b4eb3e45d153c647 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!doctype html>
<html>
    <head>
        <title>Directory Browser - {{ path }}</title>
        <link rel="stylesheet" href="{{ url_for('mediabrowser.static', filename='style.css') }}" />
    </head>
    <body class="list">
        {% if path != '.' %}
        <div>
            <img src="{{ url_for('mediabrowser.static', filename='parent.png') }}" />
            <a href="{{ url_for('mediabrowser.listdir', path=parent) }}">
                Parent Directory
            </a>
        </div>
        {% endif %}

        {% for file in files %}
        {% if file['type'] == 'file' %}
        <div>
            <video src="{{ url_for('mediabrowser.thumbnail_video', path=file['fullpath']) }}"
                poster="{{ url_for('mediabrowser.static', filename='spinner.gif') }}"
                autoplay="" loop="true" width="100" height="60">
            </video>
            <a href="{{ url_for('mediabrowser.watch', path=file['fullpath']) }}">
                {{ file['filename'] }} 
            </a>
        </div>
        {% endif %}

        {% if file['type'] == 'directory' %}
        <div>
            <img src="{{ url_for('mediabrowser.static', filename='directory.png') }}" />
            <a href="{{ file['link'] }}">
                {{ file['filename'] }}
            </a>
        </div>
        {% endif %}
        {% endfor %}
    </body>
</html>