From 3575ac579cdcc5a9fa3ffec84952a634d1d7deaf Mon Sep 17 00:00:00 2001 From: Jokler Date: Thu, 4 Jun 2020 21:51:49 +0200 Subject: Improve the default website somewhat --- web_server/templates/index.htm | 63 ++++++++++++++++++++++++++++++++++-------- web_server/templates/song.htm | 7 ----- 2 files changed, 51 insertions(+), 19 deletions(-) delete mode 100644 web_server/templates/song.htm (limited to 'web_server/templates') diff --git a/web_server/templates/index.htm b/web_server/templates/index.htm index eed31f3..fc1f8e1 100644 --- a/web_server/templates/index.htm +++ b/web_server/templates/index.htm @@ -13,24 +13,63 @@ API - +

Playlist

+ + + + + + + + {% for item in bot.playlist %} + + + + + + + {% endfor %} +
#tracklengthadded by
{{ loop.index }}{{ item.title }} + {% let duration = item.duration %} + {{ duration|fmt_duration }} + {{ item.added_by }}
+ + {% when None %} + {% endmatch %} {% endblock %} diff --git a/web_server/templates/song.htm b/web_server/templates/song.htm deleted file mode 100644 index 072567a..0000000 --- a/web_server/templates/song.htm +++ /dev/null @@ -1,7 +0,0 @@ -{{ item.title }} -({{ item.duration|fmt_duration }}) -{% match item.thumbnail %} - {% when Some with (thumbnail) %} - - {% when None %} -{% endmatch %} -- cgit v1.2.3-70-g09d2