diff --git a/supysonic/static/css/supysonic.css b/supysonic/static/css/supysonic.css index eab0969..2e84c4c 100644 --- a/supysonic/static/css/supysonic.css +++ b/supysonic/static/css/supysonic.css @@ -1,8 +1,11 @@ /* - * supysonic.css - * Copyright (C) 2017 Óscar García Amor + * This file is part of Supysonic. + * Supysonic is a Python implementation of the Subsonic server API. * - * Distributed under terms of the GNU GPLv3 license. + * Copyright (C) 2017 Óscar García Amor + * 2017 Alban 'spl0k' Féron + * + * Distributed under terms of the GNU AGPLv3 license. */ body { diff --git a/supysonic/static/js/supysonic.js b/supysonic/static/js/supysonic.js new file mode 100644 index 0000000..e207c69 --- /dev/null +++ b/supysonic/static/js/supysonic.js @@ -0,0 +1,17 @@ +/* + * This file is part of Supysonic. + * Supysonic is a Python implementation of the Subsonic server API. + * + * Copyright (C) 2017 Óscar García Amor + * 2017 Alban 'spl0k' Féron + * + * Distributed under terms of the GNU AGPLv3 license. + */ + +$(function () { + $('[data-toggle="tooltip"]').tooltip() +}); + +$('#confirm-delete').on('show.bs.modal', function(e) { + $(this).find('.btn-ok').attr('href', $(e.relatedTarget).data('href')); +}); diff --git a/supysonic/templates/folders.html b/supysonic/templates/folders.html index 3369cef..109da30 100644 --- a/supysonic/templates/folders.html +++ b/supysonic/templates/folders.html @@ -24,9 +24,9 @@ {% for folder in folders %} {{ folder.name }}{{ folder.path }} - - - + + {% endfor %} @@ -36,4 +36,21 @@ Add Scan all + {% endblock %} diff --git a/supysonic/templates/layout.html b/supysonic/templates/layout.html index a0d0785..7686fd1 100644 --- a/supysonic/templates/layout.html +++ b/supysonic/templates/layout.html @@ -16,9 +16,9 @@ Supysonic - - - + + + @@ -102,12 +102,8 @@ - + - + diff --git a/supysonic/templates/playlists.html b/supysonic/templates/playlists.html index b60d870..b3f6cc9 100644 --- a/supysonic/templates/playlists.html +++ b/supysonic/templates/playlists.html @@ -32,8 +32,8 @@ aria-label="Public playlist">{% else %}{% endif %} - - + {% endfor %} @@ -58,4 +58,21 @@ {% endif %} + {% endblock %} diff --git a/supysonic/templates/users.html b/supysonic/templates/users.html index 4075515..88c6552 100644 --- a/supysonic/templates/users.html +++ b/supysonic/templates/users.html @@ -26,8 +26,8 @@ {% if session.username == user.name %}{{ user.name }}{% else %} {{ user.name }}{% endif %} {{ user.mail }}{{ user.admin }}{{ user.last_play_date }} - {% if session.username != user.name %} - {% endif %} + {% if session.username != user.name %}{% endif %} {% endfor %} @@ -36,4 +36,21 @@ Export Import + {% endblock %}