abolish sidebar.html; too much hassle to maintain two
authorrjk@greenend.org.uk <>
Sun, 23 Dec 2007 18:51:52 +0000 (18:51 +0000)
committerrjk@greenend.org.uk <>
Sun, 23 Dec 2007 18:51:52 +0000 (18:51 +0000)
17 files changed:
doc/disorder_config.5.in
templates/Makefile.am
templates/about.html
templates/choose.html
templates/choosealpha.html
templates/error.html
templates/help.html
templates/login.html
templates/new.html
templates/options.labels
templates/playing.html
templates/prefs.html
templates/recent.html
templates/search.html
templates/sidebar.html [deleted file]
templates/sidebarend.html [deleted file]
templates/volume.html

index eeef352..3cb36af 100644 (file)
@@ -748,9 +748,10 @@ Additionally, other standard files are included by these:
 Included at the end of the main content \fB<DIV>\fR element.
 .TP
 .B topbar.html
-Included at the start of the \fB<BODY>\fR element.  (This supplants
-\fBsidebar.html\fR, though the latter is still available; override label
-\fBmenu\fR to choose between them.)
+Included at the start of the \fB<BODY>\fR element.
+.TP
+.B topbarend.html
+Included at the end of the \fB<BODY>\fR element.
 .TP
 .B stdhead.html
 Included in the \fB<HEAD>\fR element.
index 7c7a5d1..8c18552 100644 (file)
@@ -20,8 +20,8 @@
 
 pkgdata_DATA=about.html choose.html credits.html playing.html recent.html \
             stdhead.html stylesheet.html search.html about.html volume.html \
-            sidebar.html prefs.html help.html choosealpha.html topbar.html \
-            sidebarend.html topbarend.html error.html new.html login.html \
+            prefs.html help.html choosealpha.html topbar.html \
+            topbarend.html error.html new.html login.html \
             options options.labels \
             options.columns
 static_DATA=disorder.css
index e76566d..43a8a11 100644 (file)
@@ -24,7 +24,7 @@ USA
   <title>@label:about.title@</title>
  </head>
  <body>
-@include{@label{menu}@}@
+@include{topbar.html}@
    <h1 class=title>@label:about.title@</h1>
 
    <h2>Copyright</h2>
@@ -60,7 +60,7 @@ USA
 
 @stats@
 
-@include{@label{menu}@end}@
+@include{topbarend}@
  </body>
 </html>
 @@
index e6a39cb..67bddf0 100644 (file)
@@ -24,7 +24,7 @@ USA
   <title>@label:choose.title@</title>
  </head>
  <body>
-@include{@label{menu}@}@
+@include{topbar}@
    <h1 class=title>@label:choose.title@</h1>
 
    @if{@ne{@arg:directory@}{}@}{
@@ -77,7 +77,7 @@ USA
    </p>
    }@
 
-@include{@label{menu}@end}@
+@include{topbarend}@
  </body>
 </html>
 @@
index 53ce71d..759bb11 100644 (file)
@@ -24,7 +24,7 @@ USA
   <title>@label:choose.title@</title>
  </head>
  <body>
-@include{@label{menu}@}@
+@include{topbar}@
    <h1 class=title>@label:choose.title@</h1>
 
    <p class=choosealpha>
@@ -57,7 +57,7 @@ USA
     <a class=choosealpha href="@url@?action=choose&#38;regexp=^[^a-z]">*</a>
    </p>
 
-@include{@label{menu}@end}@
+@include{topbarend}@
  </body>
 </html>
 @@
index 4e0ef25..d8bcaf4 100644 (file)
@@ -24,14 +24,14 @@ USA
   <title>@label:error.title@</title>
  </head>
  <body>
-@include{@label{menu}@}@
+@include{topbar}@
    <h1 class=title>@label:error.title@</h1>
     
     <p>@label{error.@label:error@}@</p>
 
     <p>@label:error.generic@</p>
 
-@include{@label{menu}@end}@
+@include{topbarend}@
  </body>
 </html>
 @@
index aeed65f..045d821 100644 (file)
@@ -24,7 +24,7 @@ USA
   <title>@label{help.title}@</title>
  </head>
  <body>
-@include{@label{menu}@}@
+@include{topbar}@
    <h1 class=title>@label{help.title}@</h1>
 
    <h2 class=sidebarlink><a name=playing>Playing</a></h2>
@@ -354,7 +354,7 @@ USA
 
    </div>
 
-@include{@label{menu}@end}@
+@include{topbarend}@
   </div>
  </body>
 </html>
index 9119a5f..16811f8 100644 (file)
@@ -24,7 +24,7 @@ USA
   <title>@label:login.title@</title>
  </head>
  <body>
-@include{@label{menu}@}@
+@include{topbar}@
    <h1 class=title>@label:login.title@</h1>
 
    @if{@ne{@label:error@}{error}@}{
@@ -152,7 +152,7 @@ USA
 
    }@
 
-@include{@label{menu}@end}@
+@include{topbarend}@
  </body>
 </html>
 @@
index dbac790..78b47dd 100644 (file)
@@ -24,7 +24,7 @@ USA
   <title>@label:new.title@</title>
  </head>
  <body>
-@include{@label{menu}@}@
+@include{topbar}@
   <h1 class=title>@label:new.title@</h1>
 
 @#{only display the table if there is something to put in it}@
@@ -64,7 +64,7 @@ USA
   </table>
 }@
 
-@include{@label{menu}@end}@
+@include{topbarend}@
  </body>
 </html>
 @@
index f5cfd90..ca2fa7b 100644 (file)
@@ -187,10 +187,6 @@ label      sidebar.loginverbose    "log in to DisOrder"
 label  sidebar.helpverbose     "basic user guide"
 label  sidebar.manageverbose   "queue management and volume control"
 
-# This should be 'topbar' or 'sidebar'.  If 'topbar' then the menu appears
-# across the top of the screen, otherwise down the side.
-label  menu                    topbar
-
 # This should be 'choose' or 'choosealpha'.  If 'choose' then all artists
 # appear on the same page, otherwise they are broken up by initial letter
 # (which can be more convenient if you have huge numbers).
index 43811ae..30346ac 100644 (file)
@@ -24,7 +24,7 @@ USA
   <title>@if{@isplaying@}{@playing{@part:title@}@}{@label:playing.title@}@</title>
  </head>
  <body>
-@include{@label{menu}@}@
+@include{topbar}@
    <h1 class=title>@label:playing.title@</h1>
 
    @#{extra control buttons for the management page}@
@@ -250,7 +250,7 @@ USA
    </table>
 }@
 
-@include{@label{menu}@end}@
+@include{topbarend}@
  </body>
 </html>
 @@
index d37f11d..853e1b0 100644 (file)
@@ -24,7 +24,7 @@ USA
   <title>@label:prefs.title@</title>
  </head>
  <body>
-@include{@label{menu}@}@
+@include{topbar}@
    <h1 class=title>@label:prefs.title@</h1>
 
    <form class=prefs action="@url@" method=POST
@@ -71,7 +71,7 @@ USA
     </p>
    </form>
 
-@include{@label{menu}@end}@
+@include{topbarend}@
  </body>
 </html>
 @@
index 71e359a..61fc962 100644 (file)
@@ -24,7 +24,7 @@ USA
   <title>@label:recent.title@</title>
  </head>
  <body>
-@include{@label{menu}@}@
+@include{topbar}@
   <h1 class=title>@label:recent.title@</h1>
 
 @#{only display the table if there is something to put in it}@
@@ -66,7 +66,7 @@ USA
   </table>
 }@
 
-@include{@label{menu}@end}@
+@include{topbarend}@
  </body>
 </html>
 @@
index 42d1bc5..f1f7d5e 100644 (file)
@@ -24,7 +24,7 @@ USA
   <title>@label:search.title@</title>
  </head>
  <body>
-@include{@label{menu}@}@
+@include{topbar}@
    <h1 class=title>@label:search.title@</h1>
 
    <form class=search action="@url@" method=POST
@@ -63,7 +63,7 @@ USA
     }@
    </div>
 
-@include{@label{menu}@end}@
+@include{topbarend}@
  </body>
 </html>
 @@
diff --git a/templates/sidebar.html b/templates/sidebar.html
deleted file mode 100644 (file)
index 4c011a8..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-<div id=sidebar>
- <p class=sidebarlink>
-  <a class=sidebarlink href="@url@">@label:sidebar.playing@</a>
- </p>
- <p class=sidebarlink>
-  <a class=sidebarlink href="@url@?action=recent&amp;nonce=@nonce@">@label:sidebar.recent@</a>
- </p>
- <p class=sidebarlink>
-  <a class=sidebarlink href="@url@?action=new&amp;nonce=@nonce@">@label:sidebar.new@</a>
- </p>
- <p class=sidebarlink>
-  <a class=sidebarlink href="@url@?action=@label:sidebar.choosewhich@&amp;nonce=@nonce@">@label:sidebar.choose@</a>
- </p>
- <p class=sidebarlink>
-  <a class=sidebarlink href="@url@?action=search&amp;nonce=@nonce@">@label:sidebar.search@</a>
- </p>
- <p class=sidebarlink>
-  <a class=sidebarlink href="@url@?action=volume&amp;nonce=@nonce@">@label:sidebar.volume@</a>
- </p>
- <p class=sidebarlink>
-  <a class=sidebarlink href="@url@?mgmt=true">@label:sidebar.manage@</a>
- </p>
- <p class=sidebarlink>
-  <a class=sidebarlink href="@url@?action=login&amp;nonce=@nonce@">@label:sidebar.login@</a>
- </p>
- <p class=sidebarlink>
-  <a class=sidebarlink href="@url@?action=help&amp;nonce=@nonce@">@label:sidebar.help@</a>
- </p>
- <p class=sidebarlink>
-  <a class=sidebarlink href="@url@?action=about&amp;nonce=@nonce@">@label:sidebar.about@</a>
- </p>
-</div>
-<div id=content>
-@@
-<!--
-This file is part of DisOrder.
-Copyright (C) 2004, 2005, 2007 Richard Kettlewell
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-USA
--->
diff --git a/templates/sidebarend.html b/templates/sidebarend.html
deleted file mode 100644 (file)
index 07055ca..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-@include:credits@
-</div>
-@@
-<!--
-This file is part of DisOrder.
-Copyright (C) 2005 Richard Kettlewell
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-USA
--->
index 434632d..e2c4240 100644 (file)
@@ -24,7 +24,7 @@ USA
   <title>@label:volume.title@</title>
  </head>
  <body>
-@include{@label{menu}@}@
+@include{topbar}@
    <h1 class=title>@label:volume.title@</h1>
 
    <form class=volume action="@url@" method=POST>
@@ -48,7 +48,7 @@ USA
     </p>
    </form>
 
-@include{@label{menu}@end}@
+@include{topbarend}@
  </body>
 </html>
 @@