diff --git a/resources/public/css/yyy-common.css b/resources/public/css/yyy-common.css index b46e8cb..cbfb6b6 100644 --- a/resources/public/css/yyy-common.css +++ b/resources/public/css/yyy-common.css @@ -362,7 +362,6 @@ th { /* content of the current page in the Wiki - editable, provided by users. Within main-container */ #content { - border: thin solid silver; width: 80%; float: right; padding-bottom: 5em; @@ -396,7 +395,6 @@ th { /* content of the current in the Wiki - editable, provided by users. Within main-container */ #content { - border: thin solid silver; width: 100%; padding-bottom: 2em; } diff --git a/resources/sql/queries.sql b/resources/sql/queries.sql index 822b2d6..779e572 100644 --- a/resources/sql/queries.sql +++ b/resources/sql/queries.sql @@ -43,7 +43,7 @@ SELECT DISTINCT request.*, addresses.address ||', '|| addresses.postcode ||', '|| visits.date AS visit_id_expanded, request.issue_id as issue_id_expanded, request.method_id AS method_id_expanded, - visits.date + visits.date AS raised FROM followuprequests as request, ln_experts_issues_canvassers as expertise, canvassers as experts, @@ -58,7 +58,7 @@ and request.visit_id = visits.id and visits.address_id = addresses.id and request.issue_id = expertise.issue_id and expertise.canvasser_id = :expert -ORDER BY visits.date desc +ORDER BY raised --:name get-last-visit-by-canvasser :? :1 --:doc returns the most recent visit record of the canvasser with the specified `:id` diff --git a/resources/templates/base.html b/resources/templates/base.html index c14f6de..ef97912 100644 --- a/resources/templates/base.html +++ b/resources/templates/base.html @@ -5,6 +5,7 @@ + {% style "/css/yyy-common.css" %} {% style "/css/yyy-site.css" %} {% style "/css/spinner.css" %} @@ -27,9 +28,13 @@