]> git.openstreetmap.org Git - rails.git/blob - app/views/user/account.rhtml
81f72fe04fb4ad5bfa7618c21c0c36bf91e9faaf
[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>description</td><td><%= @user.description %>  (<%= link_to 'change...', :controller => 'user', :action => 'edit' %>)</td></tr>
8 </table>
9
10 <h2>Privacy</h2>
11 <% if @user.data_public? %>
12   All your edits are public.
13 <% else %>
14   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.
15   <br /><br />
16   <%= start_form_tag :controller => 'user', :action => 'go_public'%>
17   <%= submit_tag 'Make all my edits public, forever' %>
18   <%= end_form_tag %>
19 <% end %>