From ba45cf6964481e546fa192d9b568a8aea95a6f34 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sun, 7 Aug 2011 01:08:08 -0700 Subject: [PATCH] show more detail about items --- beetsplug/web/__init__.py | 2 +- beetsplug/web/static/beets.css | 16 ++++++++++++++++ beetsplug/web/templates/index.html | 23 +++++++++++++++++++++++ 3 files changed, 40 insertions(+), 1 deletion(-) diff --git a/beetsplug/web/__init__.py b/beetsplug/web/__init__.py index be2ed5419..01277914b 100644 --- a/beetsplug/web/__init__.py +++ b/beetsplug/web/__init__.py @@ -113,6 +113,6 @@ class WebPlugin(BeetsPlugin): default=False, help='debug mode') def func(lib, config, opts, args): app.config['lib'] = lib - app.run(host='', debug=opts.debug) + app.run(host='', debug=opts.debug, threaded=True) cmd.func = func return [cmd] diff --git a/beetsplug/web/static/beets.css b/beetsplug/web/static/beets.css index e5f10cec9..c30dcfd85 100644 --- a/beetsplug/web/static/beets.css +++ b/beetsplug/web/static/beets.css @@ -99,3 +99,19 @@ body { #detail .albumtitle { font-style: italic; } + +#detail dl dt, #detail dl dd { + list-style: none; + margin: 0; + padding: 0; +} +#detail dl dt { + width: 10em; + float: left; + text-align: right; + font-weight: bold; + clear: both; +} +#detail dl dd { + margin-left: 10.5em; +} diff --git a/beetsplug/web/templates/index.html b/beetsplug/web/templates/index.html index eca39d939..4a5017135 100644 --- a/beetsplug/web/templates/index.html +++ b/beetsplug/web/templates/index.html @@ -41,6 +41,29 @@ <%= title %> download + +
+
Track
+
<%= track %>/<%= tracktotal %>
+ <% if (disc) { %> +
Disc
+
<%= disc %>/<%= disctotal %>
+ <% } %> + <% if (mb_trackid) { %> +
MuscBrainz entry
+
+ view +
+ <% } %> + <% if (lyrics) { %> +
Lyrics
+
<%= lyrics %>
+ <% } %> + <% if (comments) { %> +
Comments
+
<%= comments %>
+ <% } %> +