diff options
Diffstat (limited to 'app/views/user/show.rhtml')
-rw-r--r-- | app/views/user/show.rhtml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/app/views/user/show.rhtml b/app/views/user/show.rhtml new file mode 100644 index 000000000..3e2668d01 --- /dev/null +++ b/app/views/user/show.rhtml @@ -0,0 +1,21 @@ +<% @title = h(@display_users[0].name) %> + +<% if (@display_users.size > 1) %> + <p>There is more than one user with this name. +<% end%> + +<% for display_user in @display_users %> + <h1><%=@title%></h1> + <p class="subtitle">Joined on <%= simple_date(display_user.created_at) %></p> + + <p>Freedom of Information requests made by this person:</p> + <ul> + <% for info_request in display_user.info_requests %> + <li> + <%= link_to h(info_request.title), request_url(:id => info_request) %> + on <%= simple_date(info_request.created_at) %> + </li> + <% end %> + </ul> +<% end %> + |