aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/my/my.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/base/my/my.html')
-rw-r--r--templates/web/base/my/my.html88
1 files changed, 88 insertions, 0 deletions
diff --git a/templates/web/base/my/my.html b/templates/web/base/my/my.html
new file mode 100644
index 000000000..33b2cc6a4
--- /dev/null
+++ b/templates/web/base/my/my.html
@@ -0,0 +1,88 @@
+[%
+ 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>
+
+<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 %]
+
+[% 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_dt( u.confirmed, '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_dt( p.confirmed, 'date' ), p.body(c) ) %]
+ [% ELSE %]
+ [% tprintf( loc("Reported %s"), prettify_dt( p.confirmed, 'date' ) ) %]
+ [% END %]
+ </em>
+ </li>
+
+ [% "</ul>" IF loop.last %]
+[% END %]
+