]> git.openstreetmap.org Git - rails.git/blob - app/views/user/account.rhtml
257e8c47abb53a1904c5583cf3a82d2e1fdf2020
[rails.git] / app / views / user / account.rhtml
1 <h2>User details</h2>
2 <table>
3   <tr><td>id</td><td><%= @user.id %></td></tr>
4   <tr><td>email</td><td><%= @user.email %></td></tr>
5   <tr><td>display name</td><td><%= @user.display_name %> (<%= link_to 'change...', :controller => 'user', :action => 'edit' %>)</td></tr>
6   <tr><td>account created</td><td><%= @user.creation_time %> (<%= time_ago_in_words(@user.creation_time) %> ago)</td></tr>
7   <tr><td>user home</td><td><%= @user.home_node_id %>  (<%= link_to 'change...', :controller => 'user', :action => 'edit' %>) </td></tr>
8   <tr><td valign="top">description</td><td><%= simple_format(@user.description) %>  (<%= link_to 'change...', :controller => 'user', :action => 'edit' %>)</td></tr>
9 </table>
10
11 <h2>Privacy</h2>
12 <% if @user.data_public? %>
13   All your edits are public.
14 <% else %>
15   Currently your edits are ananymous and people can't find out where you are located. To show what you edited and allow people to contact you through the website, click the button below. This action cannot be reversed.
16   <br /><br />
17   <%= start_form_tag :controller => 'user', :action => 'go_public'%>
18   <%= submit_tag 'Make all my edits public, forever' %>
19   <%= end_form_tag %>
20 <% end %>