summaryrefslogtreecommitdiff
path: root/mediabrowser/templates/listdir.html
blob: 008bb1e87929fd197cb20b78e9734225e01e2a78 (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
41
<!doctype html>
<html>
    <head>
        <title>Directory Browser - {{ path }}</title>
        <link rel="stylesheet" href="{{ url_for('mediabrowser.assets', filename='style.css') }}" />
    </head>
    <body class="list">
        {% if parent != path %}
        <div>
            <a href="{{ url_for('mediabrowser.listdir', path=parent) }}">
                <div style="width: 100%">
                    <img src="{{ url_for('mediabrowser.assets', filename='parent.png') }}" />
                    ..
                </div>
            </a>
        </div>
        {% endif %}

        {% for file in files %}
        {% if file['type'] == 'file' %}
        <div>
            <img src="{{ url_for('mediabrowser.thumbnail', path=file['fullpath']) }}" />
            <a href="{{ url_for('mediabrowser.watch', path=file['fullpath']) }}">
                {{ file['filename'] }} 
            </a>
        </div>
        {% endif %}

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