chiark / gitweb /
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 eeef352daa801e3ae49c127c9944732e46b79aab..3cb36aff622d675023ca6e3eb8eb228af8045988 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 7c7a5d1e0cc5e004c0e750d869f5afbf4db1cfd8..8c185521049dcbf4fca9ab223b33ceaf1bb55218 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 e76566d8552c48157a7b0a011dcbafff5c6f452f..43a8a112ec8d1f549b0c397efdd06a24ecaaa0d0 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 e6a39cb68af440bda80aa619889f6794e0d7bff6..67bddf097a461f534a1d2a5a1f816f6d9944ed4d 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 53ce71d5da74d0639e9d2a3c70111ab66ce8e88a..759bb11c8f69869f9756843269b3d996f5e35893 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 4e0ef25b585417b1492fba2c1bf59061471b4dc7..d8bcaf428a8a90b3b17fd466ecefca522eed47e1 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 aeed65f31eae527ae92e97927fe784f03254e110..045d8213f85c85e3325bec121b2188d57c3c3412 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 9119a5f8a316c327a6dc0c0b75b4b2b090c4871d..16811f8949e000aa24f1ff53460ba0846fd54515 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 dbac7902ed21ecc4ebdf61ead883e0bba22125ab..78b47dd46260a30864edb9d12682eaba5451818c 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 f5cfd900883553feb312cd35b898e695ec4a87b3..ca2fa7b7caa97690a7255b79f67568b4c32b7b4d 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 43811aeba01dcedc62d8f69c93d73107a6047742..30346acb57f194e25e12c3d43f717a8e0f28e680 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 d37f11d3fec19689ebe06433212956e821de9cce..853e1b030b1122c45137c0a0ccda38fc82b9b6e6 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 71e359adc252d4736a765f3cbd5c1c3da1035303..61fc9628f17baddac2aa6165968bfd548a78a843 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 42d1bc5e547265fcdded0e7ee46d4d82b636874e..f1f7d5eaa6ec8103c41a0d4fcd0d0370fa04e6e8 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 434632d538a8c4d10aa7a73b76ee666588fd3a45..e2c4240ae328f61ba7a4a5efc5d7d601a5a88f55 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>
 @@