@stdhead{choose} @stdmenu{choose}

@label{choose.title}

@if{@eq{@label{menu.choosewhich}}{choosealpha}} {

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | *

} @# Always have a search form @if{@ne{@arg{query}}{}} {@# There's a search query @right{prefs}{ } @search{@arg{query}}{ @right{prefs}{ } } } {@# No search query @# We have the following possible cases: @# choose.which dir re result @# choose "" - Ask for top level @# choose "" present Ask for top level with re applied @# choose present - Ask for dir @# choose present re Ask for dir with re applied @# choosealpha "" - Nothing @# choosealpha "" present Ask for top level with re applied @# choosealpha present - Ask for dir @# choosealpha present re Ask for dir with re applied @# @# So in fact the only oddity is choosealpha + no dir + no re. @# @# NB we don't really bother distinguishing between re being empty or absent, @# and the server deliberately cooperates in this. @if{@ne{@arg{dir}}{}}{

@# @breadcrumbs{@arg{dir}} {/@# @basename{@dir}}:

} @#

dir=[@arg{dir}]
re=[@arg{re}]
which=@label{choose.which}

@if{@or{@ne{@label{menu.choosewhich}}{choosealpha}} {@ne{@arg{dir}}{}} {@ne{@arg{re}}{}}} {@#
@dirs{@arg{dir}}{@arg{re}}{

@quote{@display}

}
@define{sometracks}{template}{}
@tracks{@arg{dir}}{@arg{re}}{

@define{sometracks}{template}{@template}@# @right{prefs}{ @label{choose.prefs} }@# @quote{@display} @if{@eq{@trackstate{@track}}{playing}} {[playing]} @if{@eq{@trackstate{@track}}{queued}} {[queued]}

} @sometracks{
@right{prefs}{ @label{choose.allprefs} }

}
} } @credits @discard{ Local variables: mode:sgml sgml-always-quote-attributes:nil sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil fill-column:79 End: }@#