Skip to content

Commit

Permalink
Minor docread fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
abeverley committed Aug 12, 2024
1 parent 953f2b1 commit a3cc979
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Brass.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};
};

Expand Down
2 changes: 1 addition & 1 deletion views/docread.tt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<tr>
<td>[% doc.id %]</td>
<td><a href="/doc/latest/[% doc.id %]">[% doc.title | html %]</a></td>
<td>[% doc.last_read(user) | html %]</td>
<td>[% doc.last_read(user).date | html %]</td>
<td>
<button type="submit" name="have_read_doc" value="[% doc.id %]" class="btn btn-primary">I have read this document</button>
</td>
Expand Down
2 changes: 1 addition & 1 deletion views/docreadstatus.tt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<td class="text-danger">Not yet read</td>
[% END %]
[% ELSE %]
<td>Nope</td>
<td class="text-muted">Not required</td>
[% END %]
[% END %]
</tr>
Expand Down

0 comments on commit a3cc979

Please sign in to comment.