aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/default/report/updates.html
blob: 7a17adbc73cd090bcf3a6fc6764f23ad5b83d80b (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
30
[% FOREACH update IN updates %]
[% INCLUDE 'report/update.html' %]
[% END %]

[% BLOCK meta_line %]

    [% IF update.whenanswered %]
        [%# A questionnaire update, currently saying report is still open %]
        [% tprintf( loc( 'Still open, via questionnaire, %s' ), prettify_epoch( update.whenanswered_local.epoch ) ) %]
        [% RETURN %]
    [% END %]

    [% IF update.anonymous || update.name == '' %]
        [% tprintf( loc( 'Posted anonymously at %s' ), prettify_epoch( update.confirmed_local.epoch ) ) -%]
    [%- ELSIF update.user.from_council;
        user_name = update.user.name | html;
        council = update.user.council;
        IF c.cobrand.moniker == 'bromley';
            council = "$council <img src='/cobrands/bromley/favicon.png' alt=''>";
        END %]
        [% tprintf( loc( 'Posted by %s (<strong>%s</strong>) at %s' ), user_name, council, prettify_epoch( update.confirmed_local.epoch ) ) -%]
    [%- ELSE %]
        [% tprintf( loc( 'Posted by %s at %s' ), update.name, prettify_epoch( update.confirmed_local.epoch ) ) | html -%]
    [%- END -%]
    [%- c.cobrand.extra_update_meta_text(update) -%]
    [%- ", " _ loc( 'marked as fixed' ) IF update.mark_fixed %]
    [%- ", " _ loc( 'reopened' ) IF update.mark_open %]
    [%- ", " _ tprintf(loc( 'marked as %s' ), update.meta_problem_state) IF update.problem_state %]
[% END %]