Skip to content

Commit

Permalink
Show user's reports on the 'my' page
Browse files Browse the repository at this point in the history
  • Loading branch information
Edmund von der Burg committed Mar 15, 2011
1 parent 3ea67dc commit e045ba2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions TODO.txt
Expand Up @@ -12,6 +12,10 @@ Problem creation:
? what should the new flow be for not-logged-in (probably unchanged). ? what should the new flow be for not-logged-in (probably unchanged).
* after becoming confirmed require user to manually send off 'pending' reports * 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: Email:
* currently don't send email via EvEl or do any of the smarts it does - should * currently don't send email via EvEl or do any of the smarts it does - should
we switch to using it (Email::Send::EvEl...)? we switch to using it (Email::Send::EvEl...)?
2 changes: 2 additions & 0 deletions templates/web/default/debug_footer.html
Expand Up @@ -4,6 +4,8 @@
<li>cobrand.moniker: [% c.cobrand.moniker %]</li> <li>cobrand.moniker: [% c.cobrand.moniker %]</li>
<li>additional_template_paths: [% additional_template_paths.join(', ') || '--empty--' %]</li> <li>additional_template_paths: [% additional_template_paths.join(', ') || '--empty--' %]</li>
<li>lang_code: [% lang_code %]</li> <li>lang_code: [% lang_code %]</li>
<li>user.id: [% c.user.id || '--not logged in--' %]</li>

</ul> </ul>
[% END %] [% END %]


9 changes: 9 additions & 0 deletions templates/web/default/my/my.html
Expand Up @@ -2,6 +2,15 @@


<h1>[% loc('Your Reports') %]</h1> <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> <p>FIXME - put in blurb here</p>


<a href="/auth/change_password">change password</a> <a href="/auth/change_password">change password</a>
Expand Down

0 comments on commit e045ba2

Please sign in to comment.