aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/default/my/my.html
blob: 3d418cda7f7041409463a15217115f81805911a5 (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
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
73
74
75
76
77
78
79
80
81
[%
    PROCESS "maps/${map.type}.html" IF problems.size;
    INCLUDE 'header.html', title = loc('Your Reports'), bodyclass = 'mappage'
%]

[% IF problems.size %]
    [% map_html %]
    </div>
    <div id="side">
[% ELSE %]
    <div id="skipped-map">
[% END %]

<h1>[% loc('Your Reports') %]</h1>

[% INCLUDE 'pagination.html',
    pager = problems_pager,
    param = 'p'
%]

[% FOREACH p = problems.confirmed %]
    [% IF loop.first %]<h2>[% loc('Open reports') %]</h2>[% END %]
    [% INCLUDE problem %]
[% END %]

[% FOREACH p = problems.fixed %]
    [% IF loop.first %]<h2>[% loc('Fixed reports') %]</h2>[% END %]
    [% INCLUDE problem %]
[% END %]

[% FOREACH p = problems.closed %]
    [% IF loop.first %]<h2>[% loc('Closed reports') %]</h2>[% END %]
    [% INCLUDE problem %]
[% END %]

[%# FOREACH p = problems.unconfirmed;
    IF loop.first;
        '<h2>' _ loc('Unconfirmed reports') _ '</h2>';
    END;
    INCLUDE problem;
END %]

[% FOREACH u IN updates %]
    [% IF loop.first %]
        <h2>[% loc('Your updates') %]</h2>
        [% INCLUDE 'pagination.html',
            pager = updates_pager,
            param = 'u'
        %]
        <ul class="issue-list full-width">
    [% END %]

    <li>&ldquo;[% u.text | html %]&rdquo;
    &ndash; <a href="[% c.uri_for( '/report', u.problem_id ) %]#update_[% u.id %]">[% u.problem.title | html %]</a>.
    <em class="council_sent_info">
        [% tprintf( loc("Added %s"), prettify_epoch( u.confirmed_local.epoch, 'date' ) ) %]
        </em>
    </li>
    [% "</ul>" IF loop.last %]
[% END %]

</div>

[% INCLUDE 'footer.html' %]

[% BLOCK problem %]
    [% "<ul class='issue-list-a full-width'>" IF loop.first %]

    <li><a href="[% c.uri_for( '/report', p.id ) %]">[% p.title | html %]</a>
    <em class="council_sent_info"> &ndash;
        [% IF p.whensent %]
            [% tprintf( loc("Reported %s, to %s"), prettify_epoch( p.confirmed_local.epoch, 'date' ), p.body(c) ) %]
        [% ELSE %]
            [% tprintf( loc("Reported %s"), prettify_epoch( p.confirmed_local.epoch, 'date' ) ) %]
        [% END %]
        </em>
    </li>

    [% "</ul>" IF loop.last %]
[% END %]