MPD Web
<% if $hasAlbumArt %>
<% end %>
Control
<% if $current.to_i > 0 %>
<% else %>
<% end %>
<% if $playing %>
<% else %>
<% end %>
<% if $stopped %>
<% else %>
<% end %> <% if $current.to_i < ($playlist.length - 1) %>
<% else %>
<% end %>
<% if $repeat %>
<% else %>
<% end %>
Volume
<% v = $config[:volumeInc] while (v <= 100) %>
<% if $mpd.volume < v %>
<% else %>
<% end %>
<% v += $config[:volumeInc] end %>
Playlist
<% $config[:plHeaders].each do |title| %>
<%= title %>
<% end %>
<% $playlist.each do |s| %>
> <% $config[:plContent].each do |col| %> <% if col == 'title' %>
<%= s['title'] %>
<% elsif col == 'tools' %>
<%= playlist_item_tool s['pos'], $playlist %>
<% else %>
<%= s[col] %>
<% end %> <% end %>
<% end %>
<%= $time[0].to_s_dtime %>
of
<%= $time[1].to_s_dtime %>
in song
<%= $remaining_length.to_s_dtime %>
of
<%= $total_length.to_s_dtime %>
in playlist
Browse Music
,
Search Music
,
Playlists
Tools
<% $tools.each do |tool| %>
<%= tool.split('.')[0].gsub(/_/,' ') %>
<% end %>