diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/default/admin/report_blocks.html | 8 | ||||
-rw-r--r-- | templates/web/zurich/admin/index-dm.html | 5 | ||||
-rw-r--r-- | templates/web/zurich/admin/index-sdm.html | 9 | ||||
-rw-r--r-- | templates/web/zurich/admin/problem_row.html | 4 |
4 files changed, 20 insertions, 6 deletions
diff --git a/templates/web/default/admin/report_blocks.html b/templates/web/default/admin/report_blocks.html index f08529ce7..dbfb8160f 100644 --- a/templates/web/default/admin/report_blocks.html +++ b/templates/web/default/admin/report_blocks.html @@ -15,3 +15,11 @@ [% BLOCK flag_button -%] [% IF user.flagged || user_flagged %]<input type="submit" name="removeuserflag" value="[% loc('Remove flag') %]">[% ELSE %]<input type="submit" name="flaguser" value="[% loc('Flag user') %]" />[% END %] [%- END %] + +[%# note: date format here (i.e., dd.mm.YYYY) currently used by Zurich %] +[%- USE date_format = DateTime::Format('DateTime::Format::Strptime', { pattern => "%d.%m.%Y" }) %] +[% BLOCK format_date -%] + [%- IF this_date %] + [% date_format.format(this_date) %] + [% ELSE %][% no_time || ' ' %][% END %][% no_time = '' %] +[%- END %] diff --git a/templates/web/zurich/admin/index-dm.html b/templates/web/zurich/admin/index-dm.html index 9916dc1b7..e4676b811 100644 --- a/templates/web/zurich/admin/index-dm.html +++ b/templates/web/zurich/admin/index-dm.html @@ -15,7 +15,7 @@ [% INCLUDE 'admin/footer.html' %] [% BLOCK list %] -<table cellspacing="0" cellpadding="2" border="1"> +<table cellspacing="0" cellpadding="2" border="1" class="admin"> <tr> <th>[% loc('ID') %]</th> <th>[% loc('Title') %]</th> @@ -24,6 +24,9 @@ <th>[% loc('Created') %]</th> <th>*</th> </tr> + <tr class="filter-row"> + <td colspan="6"><input type="text" placeholder="[%= loc('Filter report list') %]" /></td> + </tr> [% INCLUDE 'admin/problem_row.html' %] </table> [% END %] diff --git a/templates/web/zurich/admin/index-sdm.html b/templates/web/zurich/admin/index-sdm.html index 1ecc0bbcb..d7277dd7d 100644 --- a/templates/web/zurich/admin/index-sdm.html +++ b/templates/web/zurich/admin/index-sdm.html @@ -13,7 +13,7 @@ [% INCLUDE 'admin/footer.html' %] [% BLOCK list %] -<table cellspacing="0" cellpadding="2" border="1"> +<table cellspacing="0" cellpadding="2" border="1" class="admin"> <tr> <th>[% loc('ID') %]</th> <th>[% loc('Title') %]</th> @@ -23,12 +23,15 @@ <th>*</th> [% END %] </tr> + <tr class="filter-row"> + <td colspan="6"><input type="text" placeholder="[%= loc('Filter report list') %]" /></td> + </tr> [%- FOR problem IN problems %] <tr[% ' class="adminhidden"' IF problem.state == 'hidden' %]> - <td>[% problem.id %]</td> + <td class="record-id">[% problem.id %]</td> <td>[% PROCESS value_or_nbsp value=problem.title %]</td> <td>[% problem.category %]</td> - <td>[% PROCESS format_time time=problem.created %]</td> + <td>[% PROCESS format_date this_date=problem.created %]</td> [% IF NOT no_edit %] <td><a href="[% c.uri_for( 'report_edit', problem.id ) %]">[% loc('Edit') %]</a></td> [% END %] diff --git a/templates/web/zurich/admin/problem_row.html b/templates/web/zurich/admin/problem_row.html index 6f8f73738..75cee6002 100644 --- a/templates/web/zurich/admin/problem_row.html +++ b/templates/web/zurich/admin/problem_row.html @@ -14,7 +14,7 @@ [% NEXT IF admin_type == 'sdm' AND p_body.id != body.id %] [% NEXT IF admin_type == 'dm' AND p_body.id != body.id AND p_body.parent.id != body.id %] <tr[% ' class="adminhidden"' IF problem.state == 'hidden' %]> - <td>[%- IF problem.is_visible -%] + <td class="record-id">[%- IF problem.is_visible -%] <a href="[% c.uri_for_email( '/report', problem.id ) %]">[% problem.id %]</a> [%- ELSE %] [%- problem.id %] @@ -22,7 +22,7 @@ <td>[% PROCESS value_or_nbsp value=problem.title %]</td> <td>[% states.${problem.state} %]</td> <td>[% PROCESS value_or_nbsp value=problem.category %]</td> - <td>[% PROCESS format_time time=problem.created %]</td> + <td>[% PROCESS format_date this_date=problem.created %]</td> <td><a href="[% c.uri_for( 'report_edit', problem.id ) %]">[% loc('Edit') %]</a></td> </tr> [%- END -%] |