From a3cc979fb55ba2efda572a8e1f41c29fe3e02fe7 Mon Sep 17 00:00:00 2001 From: Andy Beverley Date: Mon, 12 Aug 2024 15:47:43 +0100 Subject: [PATCH] Minor docread fixes --- lib/Brass.pm | 2 +- views/docread.tt | 2 +- views/docreadstatus.tt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Brass.pm b/lib/Brass.pm index 613e7df..240748e 100644 --- a/lib/Brass.pm +++ b/lib/Brass.pm @@ -837,7 +837,7 @@ any ['get', 'post'] => '/docreadstatus' => require_role user_admin => sub { template 'docreadstatus' => { docs => [$docs->all], users => [$schema->resultset('User')->active->docread->all], - page => 'docread', + page => 'docreadstatus', }; }; diff --git a/views/docread.tt b/views/docread.tt index 04e110e..f262d5d 100644 --- a/views/docread.tt +++ b/views/docread.tt @@ -12,7 +12,7 @@ [% doc.id %] [% doc.title | html %] - [% doc.last_read(user) | html %] + [% doc.last_read(user).date | html %] diff --git a/views/docreadstatus.tt b/views/docreadstatus.tt index 2bf833f..ba3dc6b 100644 --- a/views/docreadstatus.tt +++ b/views/docreadstatus.tt @@ -20,7 +20,7 @@ Not yet read [% END %] [% ELSE %] - Nope + Not required [% END %] [% END %]