diff options
author | Matthew Somerville <matthew@mysociety.org> | 2014-11-12 17:20:37 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2014-11-14 22:48:56 +0000 |
commit | 57fcd59af03f823528f71c03c8f8043f4fee63ca (patch) | |
tree | 02fc01165077b85b960dc7a5727bcd07fe05df1d /templates | |
parent | 731419689b71b39619fc82b2d833e7830ba3b192 (diff) |
Only show text on /reports if appropriate.
Only show "select..." if more than one body, and only mention greyed out
lines if there are any. Fixes #869.
Diffstat (limited to 'templates')
-rwxr-xr-x | templates/web/base/reports/index.html | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/templates/web/base/reports/index.html b/templates/web/base/reports/index.html index 1e4130a37..7f8d7fbf6 100755 --- a/templates/web/base/reports/index.html +++ b/templates/web/base/reports/index.html @@ -1,11 +1,16 @@ -[% INCLUDE 'header.html', title = loc('Summary reports'), bodyclass => 'fullwidthpage' %] +[% INCLUDE 'header.html', title = loc('Summary reports'), bodyclass => 'fullwidthpage' %] <h1>[% loc('All Reports') %]</h1> <div class="intro"> <p> -[% loc('This is a summary of all reports on this site; select a particular council to see the reports sent there.') %] -[% loc('Greyed-out lines are councils that no longer exist.') %] + [% loc('This is a summary of all reports on this site.') %] + [% IF bodies.size > 1 %] + [% loc('Select a particular council to see the reports sent there.') %] + [% END %] + [% IF any_empty_bodies %] + [% loc('Greyed-out lines are councils that no longer exist.') %] + [% END %] </p> </div> @@ -24,7 +29,7 @@ <tbody> [% FOREACH body IN bodies %] <tr align="center" -[%- IF NOT body.areas.size %] class="gone" +[%- IF NOT body.get_column("area_count") %] class="gone" [%- ELSIF ! (loop.count % 2) %] class="a" [%- END %]> <td class="title"><a href="[% body.url(c) %]">[% body.name %]</a></td> |