From faf146b4a8a22e9d15c3bf2641e87f179b373112 Mon Sep 17 00:00:00 2001 From: jcass Date: Sat, 7 Jan 2017 18:07:01 +0200 Subject: [PATCH] Add 'Show Track Info' popup dialog. --- README.rst | 2 + .../static/css/webclient.css | 15 ++++ mopidy_musicbox_webclient/static/index.html | 52 +++++++++++++- .../static/js/controls.js | 71 ++++++++++++++++++- 4 files changed, 136 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index 6fb879d2..4195e62a 100644 --- a/README.rst +++ b/README.rst @@ -107,6 +107,8 @@ v2.4.0 (UNRELEASED) ------------------- - Add ability to insert a track anywhere in the current queue. (Addresses: `#75 `_). +- Add 'Show Track Info' popup which can be activated from any context menu. The popup includes the URI of the track, + which can be inserted into various lists elsewhere in the player. **Fixes** diff --git a/mopidy_musicbox_webclient/static/css/webclient.css b/mopidy_musicbox_webclient/static/css/webclient.css index f01fe7f0..5cbbe85c 100644 --- a/mopidy_musicbox_webclient/static/css/webclient.css +++ b/mopidy_musicbox_webclient/static/css/webclient.css @@ -260,6 +260,21 @@ span.hostInfo { border-bottom: 1px solid #CECECE; } +.info-table td { + color: #555 !important; + padding: 2px; + padding-right: 4px; + padding-left: 4px; +} + +.info-table td.label { + font-weight: bold; +} + +.info-table td.label-center { + vertical-align: middle; +} + .albumdivider h1, .table li h1 { font-size: 120% !important; } diff --git a/mopidy_musicbox_webclient/static/index.html b/mopidy_musicbox_webclient/static/index.html index 8dcf3065..9c94983d 100644 --- a/mopidy_musicbox_webclient/static/index.html +++ b/mopidy_musicbox_webclient/static/index.html @@ -150,6 +150,9 @@

 

Artists

+
  • + Show Track Info... +
  • @@ -161,7 +164,7 @@

    Artists

    Play
  • - Insert Below this Track + Add a Track Below
  • Remove from Queue @@ -177,6 +180,9 @@

    Artists

    Artists

      +
    • + Show Track Info... +
    • @@ -247,6 +253,50 @@

      Artists

      +
      + Close +
      + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
      Name:
      Album:
      Artist(s):
      Track #:
      Length:
      Bitrate:
      URI:
      +
      +
      +