diff options
author | Chris Mytton <self@hecticjeff.net> | 2013-09-23 19:38:38 +0100 |
---|---|---|
committer | Chris Mytton <self@hecticjeff.net> | 2013-09-23 19:46:02 +0100 |
commit | 0388429012dabd4381cc0d96d2c784947de74cf6 (patch) | |
tree | fb481f60f6cdd714844cae936e4262efeb11e486 | |
parent | f17aa54e96b8a7319eded3180a61ab4a35000ac1 (diff) |
[Zurich] Display internal notes in separate table
Closes FixMyStreet-Commercial/issues#405
Closes mysociety/FixMyStreet-Commercial#407
-rw-r--r-- | templates/web/zurich/admin/list_updates.html | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/templates/web/zurich/admin/list_updates.html b/templates/web/zurich/admin/list_updates.html index 80029462b..2b575f27e 100644 --- a/templates/web/zurich/admin/list_updates.html +++ b/templates/web/zurich/admin/list_updates.html @@ -1,4 +1,26 @@ [% IF updates.size %] + +<h2>[% loc('Internal notes') %]</h3> + +<table cellspacing="0" cellpadding="2" border="1"> + <tr> + <th>[% loc('ID') %]</th> + <th>[% loc('Created') %]</th> + <th>[% loc('User') %]</th> + <th>[% loc('Text') %]</th> + </tr> +[% FOREACH update IN updates -%] + [% IF update.extra.is_internal_note %] + <tr class="[% 'admininternal' IF update.extra.is_internal_note %]"> + <td>[% update.id %]</td> + <td>[% PROCESS format_date this_date=update.created %] [% update.created.hms %]</td> + <td><a href="mailto:[% update.user.email %]">[% update.user.name || update.user.email %]</a></td> + <td>[% update.text | html %]</td> + </tr> + [% END %] +[% END -%] +</table> + <h2>[% loc('Updates') %]</h2> <table cellspacing="0" cellpadding="2" border="1"> @@ -9,12 +31,15 @@ <th>[% loc('Text') %]</th> </tr> [% FOREACH update IN updates -%] - <tr class="[% 'adminhidden' IF update.state == 'hidden' || update.problem.state == 'hidden' %] [% 'admininternal' IF update.extra.is_internal_note %]"> + [% IF ! update.extra.is_internal_note %] + <tr class="[% 'adminhidden' IF update.state == 'hidden' || update.problem.state == 'hidden' %]"> <td>[% update.id %]</td> <td>[% PROCESS format_date this_date=update.created %] [% update.created.hms %]</td> <td><a href="mailto:[% update.user.email %]">[% update.user.name || update.user.email %]</a></td> <td>[% update.text | html %]</td> </tr> + [% END %] [% END -%] </table> + [% END %] |