aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/report/updates.html
blob: 817cc7eb4886cb0325a2f49783335e3b521e5a81 (plain)
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
[% global.last_state = '' %]
[% FOREACH update IN updates %]
[%- IF global.last_state == 'hidden' OR global.last_state == 'unconfirmed' OR update.problem_state == 'hidden' OR update.problem_state == 'unconfirmed' %]
  [%- IF update.problem_state != '' %]
  [%- global.last_state = update.problem_state %]
  [%- END %]
  [%- NEXT %]
[%- END %]
[% INCLUDE 'report/update.html' %]
[% END %]

[% BLOCK meta_line %]

    [% IF update.whenanswered %]
      [% IF update.marks_fixed %]
        [%# A questionnaire update that marked the report fixed %]
        [% loc("Questionnaire filled in by problem reporter") %];
        [% loc('State changed to:') %] [% prettify_state('fixed') %],
        [% prettify_dt( update.whenanswered ) %]
      [% ELSE %]
        [%# A questionnaire update, currently saying report is still open %]
        [% loc('Still open, via questionnaire') %], [% prettify_dt( update.whenanswered ) %]
      [% END %]
      [% RETURN %]
    [% END %]

    [% update.meta_line(c) %]

[% END %]