diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/oxfordshire/my/_problem-list.html | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/templates/web/oxfordshire/my/_problem-list.html b/templates/web/oxfordshire/my/_problem-list.html index e0f16586a..1ff69f9fb 100644 --- a/templates/web/oxfordshire/my/_problem-list.html +++ b/templates/web/oxfordshire/my/_problem-list.html @@ -1,12 +1,14 @@ -[% FOREACH p = problems.all %] - [% INCLUDE problem %] -[% END %] - -[% BLOCK problem %] - [% "<ul class='issue-list-a full-width'>" IF loop.first %] - [% INCLUDE 'reports/_list-entry.html', problem = p, no_fixed =1 %] - [% "</ul>" IF loop.last %] -[% END %] +<ul class='issue-list-a full-width'> + [% IF problems.all %] + [% FOREACH p = problems.all %] + [% INCLUDE 'reports/_list-entry.html', problem = p, no_fixed =1 %] + [% END %] + [% ELSE %] + <li class="empty"> + <p>[% loc('There are no reports to show.') %]</p> + </li> + [% END %] +</ul> [% IF ! problems.size %] <!-- Preserve behaviour of map filters despite map not being shown --> |