1
0
mirror of https://github.com/danbee/mpd-client synced 2025-03-04 08:39:09 +00:00
mpd-client/public/views/transport.mustache
Dan Barber cc3a6217da Partway through component refactor.
* Queue now displays.
* Does not yet update.
2013-12-20 15:29:39 +00:00

25 lines
812 B
Plaintext

<div class="scrubber">
{{#if status.playingOrPaused()}}
<div class="time elapsed"><%= formatLength(status.attr('time')[0]) %></div>
<div class="time total">-<%= formatLength(status.attr('time')[1] - status.attr('time')[0]) %></div>
{{else}}
<div class="time elapsed">--:--</div>
<div class="time total">--:--</div>
{{/if}}
<div class="track">
{{#if playingOrPaused()}}
<div class="marker" style="left: {{status.markerPosition()}}"></div>
{{/if}}
</div>
</div>
<nav class="controls">
<button data-command="previous">previous</button>
{{#if status.playing()}}
<button data-command="pause">pause</button>
{{else}}
<button data-command="play">play</button>
{{/if}}
<button data-command="stop">stop</button>
<button data-command="next">next</button>
</nav>