chiark / gitweb /
Further simplify web setup.
[disorder] / templates / topbar.html
1 <p class=menubar>
2   <a class=@if{@eq{@action@}{playing}@}{activemenu}{inactivemenu}@
3  href="@url@"
4  title="@label:sidebar.playingverbose@">@label:sidebar.playing@</a>
5   <a class=@if{@eq{@action@}{recent}@}{activemenu}{inactivemenu}@
6  href="@url@?action=recent&amp;nonce=@nonce@"
7  title="@label:sidebar.recentverbose@">@label:sidebar.recent@</a>
8   <a class=@if{@eq{@action@}{new}@}{activemenu}{inactivemenu}@
9  href="@url@?action=new&amp;nonce=@nonce@"
10  title="@label:sidebar.newverbose@">@label:sidebar.new@</a>
11 @right{play}{
12   <a class=@if{@or{@eq{@action@}{choose}@}
13                   {@eq{@action@}{choosealpha}@}@}
14               {activemenu}
15               {inactivemenu}@
16  href="@url@?action=@label:sidebar.choosewhich@&amp;nonce=@nonce@"
17  title="@label:sidebar.chooseverbose@">@label:sidebar.choose@</a>}{
18   <span class=invalidmenu
19    title="@label:sidebar.chooseverbose@">@label:sidebar.choose@</span>}@
20 @right{play}{
21   <a class=@if{@eq{@action@}{search}@}{activemenu}{inactivemenu}@
22  href="@url@?action=search&amp;nonce=@nonce@"
23  title="@label:sidebar.searchverbose@">@label:sidebar.search@</a>}{
24   <span class=invalidmenu
25    title="@label:sidebar.searchverbose@">@label:sidebar.search@</span>}@
26 <!-- disabled by default since now available from 'manage'
27   <a class=@if{@eq{@action@}{volume}@}{activemenu}{inactivemenu}@
28  href="@url@?action=volume&amp;nonce=@nonce@"
29  title="@label:sidebar.volumeverbose@">@label:sidebar.volume@</a>
30 -->
31   <a class=@if{@eq{@action@}{manage}@}{activemenu}{inactivemenu}@
32  href="@url@?mgmt=true"
33  title="@label:sidebar.manageverbose@">@label:sidebar.manage@</a>
34   <a class=@if{@eq{@action@}{login}@}{activemenu}{inactivemenu}@
35  href="@url@?action=login&amp;nonce=@nonce@"
36  title="@label:sidebar.loginverbose@">@label:sidebar.login@</a>
37   <a class=@if{@eq{@action@}{help}@}{activemenu}{inactivemenu}@
38  href="@url@?action=help&amp;nonce=@nonce@"
39  title="@label:sidebar.helpverbose@">@label:sidebar.help@</a>
40   <a class=@if{@eq{@action@}{about}@}{activemenu}{inactivemenu}@
41  href="@url@?action=about&amp;nonce=@nonce@"
42  title="@label:sidebar.aboutverbose@">@label:sidebar.about@</a>
43 </p>
44 <hr>
45 @@
46 <!--
47 This file is part of DisOrder.
48 Copyright (C) 2005, 2007 Richard Kettlewell
49
50 This program is free software; you can redistribute it and/or modify
51 it under the terms of the GNU General Public License as published by
52 the Free Software Foundation; either version 2 of the License, or
53 (at your option) any later version.
54
55 This program is distributed in the hope that it will be useful, but
56 WITHOUT ANY WARRANTY; without even the implied warranty of
57 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
58 General Public License for more details.
59
60 You should have received a copy of the GNU General Public License
61 along with this program; if not, write to the Free Software
62 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
63 USA
64 -->