From 9df7ab7d80a7f0b76860d93f915e07ec07668d57 Mon Sep 17 00:00:00 2001
From: Matthew Somerville
Date: Tue, 7 Jun 2016 12:03:41 +0100
Subject: Simplify use of full-width class.
---
templates/web/base/my/_problem-list.html | 2 +-
templates/web/base/my/my.html | 16 +++++++---------
templates/web/base/pagination.html | 6 ------
templates/web/base/reports/_list-filters.html | 6 ++----
templates/web/base/reports/_problem-list.html | 8 +++-----
templates/web/base/reports/_ward-list.html | 4 +++-
templates/web/base/reports/body.html | 7 +++----
templates/web/zurich/reports/index.html | 4 ++--
8 files changed, 21 insertions(+), 32 deletions(-)
(limited to 'templates')
diff --git a/templates/web/base/my/_problem-list.html b/templates/web/base/my/_problem-list.html
index e74dd25ec..8b9f51dad 100644
--- a/templates/web/base/my/_problem-list.html
+++ b/templates/web/base/my/_problem-list.html
@@ -1,4 +1,4 @@
-
+
[% IF problems.size %]
[% FOREACH problem = problems %]
[% INCLUDE 'reports/_list-entry.html' no_fixed = 1 %]
diff --git a/templates/web/base/my/my.html b/templates/web/base/my/my.html
index 4d5fed1cd..b93a837ad 100644
--- a/templates/web/base/my/my.html
+++ b/templates/web/base/my/my.html
@@ -34,23 +34,21 @@
[% INCLUDE '_hart_hants_note.html' %]
[% END %]
-[% INCLUDE "reports/_list-filters.html", use_section_wrapper = 1 %]
-
-[% INCLUDE 'pagination.html',
- pager = problems_pager,
- param = 'p'
-%]
-
+
+[% INCLUDE "reports/_list-filters.html", use_form_wrapper = 1 %]
+[% INCLUDE 'pagination.html', pager = problems_pager, param = 'p' %]
[% INCLUDE 'my/_problem-list.html' %]
+
[% FOREACH u IN updates %]
[% IF loop.first %]
[% loc('Your updates') %]
+
[% INCLUDE 'pagination.html',
pager = updates_pager,
param = 'u'
%]
-
+
[% END %]
-
@@ -69,7 +67,7 @@
- [% "
" IF loop.last %]
+ [% "
" IF loop.last %]
[% END %]
diff --git a/templates/web/base/pagination.html b/templates/web/base/pagination.html
index 63180b600..f0c51bb10 100644
--- a/templates/web/base/pagination.html
+++ b/templates/web/base/pagination.html
@@ -1,7 +1,4 @@
[% IF pager.last_page > 1 %]
-[% IF NOT admin %]
-
-[% END %]
-[% IF NOT admin %]
-
-[% END %]
[% END %]
diff --git a/templates/web/base/reports/_list-filters.html b/templates/web/base/reports/_list-filters.html
index 4dd270dc6..04f80ff50 100644
--- a/templates/web/base/reports/_list-filters.html
+++ b/templates/web/base/reports/_list-filters.html
@@ -18,8 +18,7 @@
[% END %]
-[% IF use_section_wrapper %]
-
+[% IF use_form_wrapper %]
-[% IF use_section_wrapper %]
+[% IF use_form_wrapper %]
-
[% END %]
diff --git a/templates/web/base/reports/_problem-list.html b/templates/web/base/reports/_problem-list.html
index 4da9e1bb6..5712c79da 100644
--- a/templates/web/base/reports/_problem-list.html
+++ b/templates/web/base/reports/_problem-list.html
@@ -1,8 +1,6 @@
-
- [% INCLUDE column
- problems = problems.${body.id}
- %]
-
+[% INCLUDE column
+ problems = problems.${body.id}
+%]
[% BLOCK column %]