Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Show user's reports on the 'my' page

  • Loading branch information...
commit e045ba2b288b58ada1d886240346ec62f2846f58 1 parent 3ea67dc
@evdb evdb authored
View
4 TODO.txt
@@ -12,6 +12,10 @@ Problem creation:
? what should the new flow be for not-logged-in (probably unchanged).
* after becoming confirmed require user to manually send off 'pending' reports
+Users:
+ * create a message to the user if they have reports which have not been
+ confirmed.
+
Email:
* currently don't send email via EvEl or do any of the smarts it does - should
we switch to using it (Email::Send::EvEl...)?
View
2  templates/web/default/debug_footer.html
@@ -4,6 +4,8 @@
<li>cobrand.moniker: [% c.cobrand.moniker %]</li>
<li>additional_template_paths: [% additional_template_paths.join(', ') || '--empty--' %]</li>
<li>lang_code: [% lang_code %]</li>
+ <li>user.id: [% c.user.id || '--not logged in--' %]</li>
+
</ul>
[% END %]
View
9 templates/web/default/my/my.html
@@ -2,6 +2,15 @@
<h1>[% loc('Your Reports') %]</h1>
+[% FOREACH p = c.user.problems %]
+ [% "<ul>" IF loop.first %]
+
+ <li><a href="[% c.uri_for( '/report', p.id ) %]">[% p.title | html %]</a> ([% loc(p.state) %])</li>
+
+ [% "</ul>" IF loop.last %]
+[% END %]
+
+
<p>FIXME - put in blurb here</p>
<a href="/auth/change_password">change password</a>

0 comments on commit e045ba2

Please sign in to comment.
Something went wrong with that request. Please try again.