1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
[%
SET state_pretty = {
'confirmed' = loc('Open')
'investigating' = loc('Investigating')
'planned' = loc('Planned')
'in progress' = loc('In progress')
'action scheduled' = loc('Action Scheduled')
'fixed' = loc('Fixed')
'fixed - user' = loc('Fixed - User')
'fixed - council' = loc('Fixed - Council')
'unable to fix' = loc('Unable to fix')
'not responsible' = loc('Not Responsible')
'duplicate' = loc('Duplicate')
'closed' = loc('Closed')
'internal referral' = loc('Internal referral')
'hidden' = loc('Hidden')
'partial' = loc('Partial')
'unconfirmed' = loc('Unconfirmed')
};
SET state_groups = [
[ loc('Open'), [ 'confirmed', 'investigating', 'planned', 'in progress', 'action scheduled' ] ],
[ loc('Fixed'), [ 'fixed', 'fixed - user', 'fixed - council' ] ],
[ loc('Closed'), [ 'unable to fix', 'not responsible', 'duplicate', 'closed', 'internal referral' ] ],
[ loc('Hidden'), [ 'hidden', 'partial', 'unconfirmed' ] ]
];
%]
[% BLOCK value_or_nbsp -%]
[%- IF value %][% value | html %][% ELSE %] [% END %]
[%- END %]
[% BLOCK format_time -%]
[%- IF time %][% time.ymd %] [% time.hms %][% ELSE %][% no_time || ' ' %][% END %][% no_time = '' %]
[%- END %]
[% BLOCK abuse_button -%]
[% IF allowed_pages.abuse_edit -%]
[% IF email_in_abuse %]<small>[% loc('(Email in abuse table)') %]</small>[% ELSE %]<input type="submit" class="btn" name="banuser" value="[% loc('Ban email address') %]" />[% END %]
[%- END %]
[%- END %]
[% BLOCK flag_button -%]
[% IF user.flagged || user_flagged %]<input type="submit" class="btn" name="removeuserflag" value="[% loc('Remove flag') %]">[% ELSE %]<input type="submit" class="btn" name="flaguser" value="[% loc('Flag user') %]" />[% END %]
[%- END %]
[%# note: date format here (i.e., dd.mm.YYYY) currently used by Zurich %]
[% BLOCK format_date -%]
[%- IF this_date %]
[% this_date.strftime('%d.%m.%Y') %]
[% ELSE %][% no_time || ' ' %][% END %][% no_time = '' %]
[%- END %]
[% BLOCK sort_link %][% IF order == choice %][% c.uri_with( d => 1 - dir ) %][% ELSE %][% c.uri_with( { o => choice, d => 0 } ) %][% END %][% END %]
[% BLOCK sort_arrow %]
[% IF order == choice %]
<span style="font-size:50%">
[% IF dir %]
▼
[% ELSE %]
▲
[% END %]
</span>
[% ELSE %]
<span style="font-size:50%; color: #999;">
▲
</span>
[% END %]
[% END %]
|