summaryrefslogtreecommitdiff
path: root/mediabrowser/templates/listdir.html
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2015-11-30 20:14:16 +0100
committerYves Fischer <yvesf-git@xapek.org>2016-01-08 20:38:18 +0100
commit2a5bc9636647c1beeb58f3f0b3f2bcecb3509d16 (patch)
treecb1abc4fc90e9341b614114136e8be3d98c33e97 /mediabrowser/templates/listdir.html
downloadflask-mediabrowser-2a5bc9636647c1beeb58f3f0b3f2bcecb3509d16.tar.gz
flask-mediabrowser-2a5bc9636647c1beeb58f3f0b3f2bcecb3509d16.zip
poc
Diffstat (limited to 'mediabrowser/templates/listdir.html')
-rw-r--r--mediabrowser/templates/listdir.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/mediabrowser/templates/listdir.html b/mediabrowser/templates/listdir.html
new file mode 100644
index 0000000..008bb1e
--- /dev/null
+++ b/mediabrowser/templates/listdir.html
@@ -0,0 +1,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>