- <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{@id}{artist}@"
- href="@url?action=choose&directory=@urlquote{@dirname{@dirname{@track}@}@}@"
- >@part{@id}{short}{artist}</a>}{<span class=directory
- title="@part{@id}{artist}@"
- >@part{@id}{short}{artist}</span>}</td>
- <td class=album>@right{play}{<a class=directory
- title="@part{@id}{album}@"
- href="@url?action=choose&directory=@urlquote{@dirname{@track}@}@"
- >@part{@id}{short}{album}</a>}{<span class=directory
- title="@part{@id}{album}@"
- >@part{@id}{short}{album}@}</td>
- <td class=title><span
- title="@part{@id}{title}@">@part{@id}{short}{title}</span></td>
- <td class=length>@length</td>
- <td class=imgbutton>@if{@removable@}{<a class=imgbutton
- href="@url?action=remove&id=@id@@back"><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{@eq{@arg{action}}{manage}}{
- @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@back"><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@back"><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@back"><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@back"><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</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>