Skip to content

Commit

Permalink
Merge pull request #182 from jcass77/fix/99_browse_track_artist
Browse files Browse the repository at this point in the history
Refactor code for displaying track lists.
  • Loading branch information
jcass77 committed Mar 16, 2016
2 parents c15c3fe + 7710d23 commit df0775e
Show file tree
Hide file tree
Showing 9 changed files with 240 additions and 238 deletions.
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,12 @@ v2.3.0 (UNRELEASED)
-------------------

- Enhance build workflow to include style checks and syntax validation for HTML, CSS, and Javascript.
- Now displays album and artist info when browsing tracks. (Addresses: `#99 <https://github.com/pimusicbox/mopidy-musicbox-webclient/issues/99>`_).

**Fixes**

- Don't create Mopidy models manually. (Fixes: `#172 <https://github.com/pimusicbox/mopidy-musicbox-webclient/issues/172>`_).
- Context menu is now available for all tracks in browse pane. (Fixes: `#126 <https://github.com/pimusicbox/mopidy-musicbox-webclient/issues/126>`_).

v2.2.0 (2016-03-01)
-------------------
Expand Down
16 changes: 11 additions & 5 deletions mopidy_musicbox_webclient/static/css/webclient.css
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
margin-left: 10px;
}

#playlisttracksback {
.backnav-optional {
display: none;
}

Expand Down Expand Up @@ -74,7 +74,7 @@
width: 100%;
}

#playlisttracksback {
.backnav-optional {
display: block;
}

Expand Down Expand Up @@ -293,13 +293,17 @@
margin-left: 20px;
}

.song .moreBtn{
.song .moreBtn {
float: right;
padding: 15px 18px 12px 22px;
display: inline-block;
line-height: 100%;
}

.backnav {
background-color: #ccc !important;
}


/**********************
* Now Playing area *
Expand Down Expand Up @@ -369,12 +373,14 @@
}

#popupTracksLv li,
#popupQueueLv li {
#popupQueueLv li,
#popupBrowseLv li {
border-bottom: 1px solid #aaa;
}

#popupTracksLv,
#popupQueueLv {
#popupQueueLv,
#popupBrowseLv li {
border: 1px solid #aaa;
}

Expand Down
26 changes: 8 additions & 18 deletions mopidy_musicbox_webclient/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
<div data-role="page" id="page" class="ui-responsive-panel" data-theme="c">
<div data-role="panel" id="panel" data-position="left" data-theme="a" data-display="reveal" data-position-fixed="true">


<ul class="ui-listview mainNav" data-role="listview" data-theme="a">
<li id="navhome" data-icon="false">
<a href="#home" onclick="switchContent('home' ); return false;">
Expand All @@ -76,11 +75,11 @@
</li>
<li id="navbrowse" data-icon="false">
<a href="#browse" onclick="switchContent('browse' ); return false;">
<span class="navtxt"> Browse </span><i class="fa fa-folder"></i></a>
<span class="navtxt"> Browse </span><i class="fa fa-folder"></i></a>
</li>
<li id="navstream" data-icon="false">
<a href="#stream" onclick="switchContent('stream' ); return false;">
<span class="navtxt">Streams </span><i class="fa fa-rss"></i></a>
<span class="navtxt">Streams </span><i class="fa fa-rss"></i></a>
</li>
<li id="navsearch" data-icon="false">
<a href="#search" onclick="switchContent('search' ); return false;">
Expand Down Expand Up @@ -164,8 +163,7 @@ <h4 id="artistpopupname">&nbsp;</h4>
<a href="#" onclick="return playTrack(ADD_THIS_BOTTOM);">Add Track to Bottom of Queue</a>
</li>
<li class="addqueue">
<a href="#" onclick="return playTrack(ADD_ALL_BOTTOM);" id="liaddtobottom">Add all to Bottom of
Queue</a>
<a href="#" onclick="return playTrack(ADD_ALL_BOTTOM);" id="liaddtobottom">Add all to Bottom of Queue</a>
</li>
<li>
<a href="#" onclick="showAlbumPopup('#popupTracks')">Show Album <span class="popupAlbumName"></span></a>
Expand Down Expand Up @@ -206,7 +204,6 @@ <h2>Artists</h2>
</div>
</div>


<div data-role="popup" data-theme="b" id="popupSave" class="popupDialog">
<form>
<p>Save current queue to a playlist.
Expand All @@ -224,7 +221,6 @@ <h2>Artists</h2>
</div>
<!--/save queue to playlist-->


<div data-role="popup" data-theme="b" id="popupOverwrite" class="popupDialog">
<form>
<p>Overwrite existing playlist with same name?
Expand Down Expand Up @@ -307,12 +303,10 @@ <h4>System</h4>
</div>
<!--/homepane-->


<div id="nowPlayingpane" data-role="content" class="pane">

<img id="controlspopupimage" src="images/default_cover.png" alt="Album cover"/>


<div class="nowPlaying-artistInfo">
<h3 id="modalname"></h3>
<p class="artistAlbumLine"><span id="modalartist"></span> - <span id="modalalbum"></span></p>
Expand Down Expand Up @@ -343,9 +337,6 @@ <h4>Playlists</h4>
<ul id="playlistslist" class="table"></ul>
</div>
<div class="ui-block-b scroll" id="playlisttracksdiv">
<div id="playlisttracksback" style="height: 30px; margin: 2px; padding-top: 2px; background-color: #aaa;">
<a style="display:block; padding: 5px;" href="#" onclick="return togglePlaylists();"><i class="fa fa-arrow-circle-left"></i> Back</a>
</div>
<div>
<ul class="table" id="playlisttracks"></ul>
</div>
Expand All @@ -356,8 +347,9 @@ <h4>Playlists</h4>

<div data-role="content" id="browsepane" class="pane">
<h4>Browse</h4>
<h5 id="browsepath"></h5>
<ul id="browselist" class="table"></ul>
<div class="ui-grid">
<ul id="browsetable" class="table"></ul>
</div>
</div>
<!--/browsepane-->

Expand Down Expand Up @@ -385,7 +377,7 @@ <h4>Play Queue</h4>

<h3 id="h_albumname"></h3>
<h5 id="h_albumartist"></h5>
<div id="albumstable"></div>
<ul class="table" id="albumstable"></ul>

</div>

Expand Down Expand Up @@ -477,7 +469,6 @@ <h4>Streams</h4>
</div>
</div>


<div data-role="footer" data-tap-toggle="false" data-position="fixed" id="normalFooter">
<div class="footerControls">
<div class="songinfo" id="songinfo">
Expand All @@ -492,6 +483,7 @@ <h4>Streams</h4>
</div>
</div>
</div>

<div data-role="footer" data-tap-toggle="false" data-position="fixed" id="nowPlayingFooter">
<div class="footerControls" style="padding-left: 10px;">
<div style="float: left;">
Expand All @@ -507,11 +499,9 @@ <h4>Streams</h4>
<a href="#" onclick="doShuffle(); return false"><span id="shufflebt" title="Shuffle"><i class="fa fa-arrows-v"></i></span></a>
</div>
</div>

</div>
<!-- /footer -->


</div>
<!-- /page one -->
<script type="text/javascript" src="vendors/mopidy/mopidy.min.js"></script>
Expand Down
Loading

0 comments on commit df0775e

Please sign in to comment.