- <tr class=@parity@>
- <td class=when>@when@</td>
- <td class=who>@if{@eq{@who@}{}@}{@if{@eq{@state@}{random}@}{@label{queue.randomtrack}}{ }@}{@who@}@</td>
- <td class=artist>@right{play}{<a class=directory
- title="@part{artist}@"
- href="@url?action=choose&directory=@urlquote{@dirname{@dirname{@part:path@}@}@}@"
- >@part{short}{artist}@</a>}{<span class=directory
- title="@part{artist}@"
- >@part{short}{artist}@</span>}@</td>
- <td class=album>@right{play}{<a class=directory
- title="@part{album}@"
- href="@url?action=choose&directory=@urlquote{@dirname{@part:path@}@}@"
- >@part{short}{album}@</a>}{<span class=directory
- title="@part{album}@"
- >@part{short}{album}@}@</td>
- <td class=title><span
- title="@part{title}@">@part{short}{title}@</span></td>
- <td class=length>@length@</td>
- <td class=imgbutton>@if{@removable@}{<a class=imgbutton
- href="@url?action=remove&id=@id@&mgmt=@arg{mgmt}"><img
- class=button src="@image{scratch}"
- title="@label{playing.removeverbose}"
- alt="@label{playing.remove}"></a>}{<img
- class=button src="@image{noscratch}"
- title="@label{playing.removeverbose}"
- alt="@label{playing.remove}">}@</td>
-
- @if{@arg{mgmt}}{
- @if{@or{@isfirst@}
- {@not{@movable@}@}@}{
- <!-- cannot move up -->
- <td class=imgbutton>
- <img
- class=button src="@image{noupall}"
- title="@label{playing.upallverbose}" alt="">
- <td class=imgbutton>
- <img
- class=button src="@image{noup}"
- title="@label{playing.upverbose}" alt="">
- }{
- <!-- can move up -->
- <td class=imgbutton>
- <a class=imgbutton
- href="@url?action=move&id=@id@&delta=2147483647&mgmt=true"><img
- class=button src="@image{upall}"
- title="@label{playing.upallverbose}"
- alt="@label{playing.upall}"></a>
- <td class=imgbutton>
- <a class=imgbutton
- href="@url?action=move&id=@id@&delta=1&mgmt=true"><img
- class=button src="@image{up}"
- title="@label{playing.upverbose}" alt="@label{playing.up}"></a>
- }@
-
- @if{@or{@islast@}
- {@not{@movable@}@}@}{
- <!-- cannot move down -->
- <td class=imgbutton>
- <img
- class=button src="@image{nodownall}"
- title="@label{playing.downallverbose}" alt="">
- <td class=imgbutton>
- <img
- class=button src="@image{nodown}"
- title="@label{playing.downverbose}" alt="">
- }{
- <!-- can move down -->
- <td class=imgbutton>
- <a class=imgbutton
- href="@url?action=move&id=@id@&delta=-2147483647&mgmt=true"><img
- class=button src="@image{downall}"
- title="@label{playing.downallverbose}"
- alt="@label{playing.downall}"></a>
- <td class=imgbutton>
- <a class=imgbutton
- href="@url?action=move&id=@id@&delta=-1&mgmt=true"><img
- class=button src="@image{down}"
- title="@label{playing.downverbose}" alt="@label{playing.down}"></a>
- }@
-
- }@
- </tr>
- }@}@
+ <tr class=@parity>
+ <td class=when>@mwhen{queue}{@id}</td>
+ <td class=who>@mwho{queue}{@id}</td>
+ <td class=artist>@martist{queue}{@track}</td>
+ <td class=album>@malbum{queue}{@track}</td>
+ <td class=title>@mtitle{queue}{@track}</td>
+ <td class=length>@length{@id}</td>
+ <td class=imgbutton>@mremove{queue}{@id}</td>
+ @ifmanage{
+ <td class=imgbutton>@mmove{@id}{upall}{2147483647}</td>
+ <td class=imgbutton>@mmove{@id}{up}{1}</td>
+ <td class=imgbutton>@mmove{@id}{down}{-1}</td>
+ <td class=imgbutton>@mmove{@id}{downall}{-2147483647}</td>
+ }{}
+ </tr>
+ }