aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/my/my.html
blob: 91cf40b68f5876d49a11c8072393036876be84a7 (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
[%
    SET bodyclass = 'mappage';
    PROCESS "maps/${map.type}.html" IF problems.size;
    INCLUDE 'header.html', title = loc('Your Reports')
%]

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

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

<p><a href="/auth/change_password">[% loc('Change password') %]</a></p>

[% IF ! has_content %]
[% tprintf( loc('You haven&rsquo;t created any reports yet.  <a href="%s">Report a problem now.</a>'),
    c.uri_for('/') ) %]
[% END %]

[% IF c.cobrand.moniker == 'fixmybarangay' %]
    [% INCLUDE '_barangay_buttons.html' %]
[% ELSIF c.cobrand.moniker == 'hart' %]
    [% INCLUDE '_hart_hants_note.html' %]
[% END %]

[% INCLUDE "reports/_list-filters.html", use_section_wrapper = 1 %]

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

[% INCLUDE 'my/_problem-list.html' %]

[% 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>.
        <p><small class="council_sent_info">
        [% tprintf( loc("Added %s"), prettify_dt( u.confirmed, 'date' ) ) %]
        </small></p>
    </li>
    [% "</ul>" IF loop.last %]
[% END %]

</div>

[% INCLUDE 'footer.html' %]