-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
As a developer I want to improve Playlist playback
- Loading branch information
Showing
7 changed files
with
47 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
<% annotation = AvalonAnnotation.find(@playlist.items[playlist_item_counter].annotation_id) %> | ||
<% item_class = (@playlist.items[playlist_item_counter] == @current_playlist_item)? 'now_playing' : 'queue' %> | ||
<% item_type = (annotation.master_file.file_format=='Moving image')? 'glyphicon-film' : 'glyphicon-music' %> | ||
<% item = @playlist.items[playlist_item_counter] %> | ||
<% item_class = (item == @current_playlist_item)? 'now_playing' : 'queue' %> | ||
<% item_type = (annotation.master_file.file_format=='Moving image')? 'fa-film' : 'fa-music' %> | ||
<li class="<%= item_class %>"> | ||
<% if item_class == 'now_playing' %> | ||
<a href="#" class="md-icon-container"><i class="material-icons md-18">equalizer</i> | ||
<i class="fa fa-arrow-circle-right"></i> | ||
<% else %> | ||
<a href="#"> | ||
<% end %> | ||
<%= annotation.title %></a> | ||
<span class="pull-right"> <span class="glyphicon <%= item_type %>"></span> <%= annotation.duration %></span> | ||
<%= link_to playlist_path(@playlist, position: item.position) do %> | ||
<%= annotation.title %></a> | ||
<% end %> | ||
<span class="pull-right"> <span class="fa <%= item_type %>"></span> <%= annotation.duration %></span> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters