From 6701f8639079e923d4e8bbd3d02ea07d546c29dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A5=9E=E6=A5=BD=E5=9D=82=C2=B7=E5=96=B5?= Date: Thu, 21 Nov 2019 17:59:37 +0800 Subject: [PATCH] modify web ui --- templates/index.html | 277 ++++++++++++++++++++++++++++--------------- 1 file changed, 183 insertions(+), 94 deletions(-) diff --git a/templates/index.html b/templates/index.html index 7025db0..70f3d4c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,126 +1,215 @@ {% macro dirlisting(dir, path='') -%} - {%- endmacro %} + - - + botamusique web interface + + -
Refresh
-
+
+
+
+
+

Play List

+
-
-
- - Upload into - - - - -
-
+
+
+ Currently Playing : + {% if playlist|length > 0 %} + {% if 'url' in playlist[0] %} + ({{ playlist[0]['url'] }}) + {% elif 'path' in playlist[0] %} + ({{ playlist[0]['path'] }}) + {% endif %} + {% else %} + No music + {% endif %} +
+ Playlist : +
+ + +
-
- Add Youtube/Soundcloud URL : -
- - -
-
-
- Add Radio URL : -
- - -
-
+ + + + + + + + + + + {% for m in playlist[1:] %} + + + + + + + {% endfor %} + +
TypeTitleUrl/PathAction
{{ m['type'] }} + {% if 'title' in m %} + ({{ m['title'] }}) + {% else %} + No title + {% endif %} + + {% if 'url' in m %} + ({{ m['url'] }}) + {% elif 'path' in m %} + ({{ m['path'] }}) + {% endif %} + +
+ + +
+
+
+
+
-
- Currently Playing : - {% if playlist|length > 0 %} - {{ playlist[0]['title'] }} {{ playlist[0]['user'] }} - {% if 'url' in playlist[0] %} - ({{ playlist[0]['url'] }}) - {% endif %} - {% else %} - No music - {% endif %} -
- Playlist : -
+
+
+
+

Music library

+
+
+
+
+ + +
+
+ + +
+
+
+ {{ dirlisting(music_library) }} +
+
+
+
- -

Music library:

-
- - -
-
- - -
-
- {{ dirlisting(music_library) }} +
+
+
+
+
+
Upload File
+
+
+
+
+
+ + +
+
+ + + + +
+
+
+
+
+
+
+
+
+
+
+
Add URL
+
+
+
+ + + +
+
+
+
+
+
+
+
Add Radio
+
+
+
+ + + +
+
+
+
+
+
- -
-
- -
-
- -
+ - + + \ No newline at end of file