diff options
Diffstat (limited to 'app/views/user/index.rhtml')
-rw-r--r-- | app/views/user/index.rhtml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/views/user/index.rhtml b/app/views/user/index.rhtml new file mode 100644 index 000000000..77f443463 --- /dev/null +++ b/app/views/user/index.rhtml @@ -0,0 +1,18 @@ +<% @title = @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 %> + <h2><%=@title%></h2> + + <p>Registered <%= 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 info_request.title, :controller => 'request', :action => 'index', :id => info_request %></td> + <% end %> + </ul> +<% end %> + |