diff options
-rwxr-xr-x | web/report.cgi | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/web/report.cgi b/web/report.cgi index fc1720f59..947c1b105 100755 --- a/web/report.cgi +++ b/web/report.cgi @@ -6,7 +6,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: matthew@mysociety.org. WWW: http://www.mysociety.org # -# $Id: report.cgi,v 1.36 2007-06-13 15:23:10 francis Exp $ +# $Id: report.cgi,v 1.37 2007-06-15 09:34:45 francis Exp $ use strict; require 5.8.0; @@ -107,7 +107,9 @@ sub main { print $q->p( $q->a({href => "/rss/council/$one_council"}, '<img align="right" src="/i/feed.png" width="16" height="16" title="RSS feed" alt="RSS feed of problems in this council" border="0" hspace="4">'), 'This is a summary of all reports for one council. You can ' . - $q->a({href => NewURL($q, all=>1) }, 'see more details') . + ($all ? + $q->a({href => NewURL($q, all=>undef) }, 'see less details') : + $q->a({href => NewURL($q, all=>1) }, 'see more details')) . ' or go back and ' . $q->a({href => NewURL($q, all=>undef, council=>undef) }, 'show all councils') . '.'); |