]> git.openstreetmap.org Git - rails.git/blob - app/views/user/account.rhtml
Added user home lat and lon
[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>Latitude: <%=@user.home_lat%> Longitude <%=@user.home_lon%>  (<%= 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>Users in your area</h2>
12
13 These users are mapping in your area:
14
15
16
17 <h2>Privacy</h2>
18 <% if @user.data_public? %>
19   All your edits are public.
20 <% else %>
21   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.
22   <br /><br />
23   <%= start_form_tag :controller => 'user', :action => 'go_public'%>
24   <%= submit_tag 'Make all my edits public, forever' %>
25   <%= end_form_tag %>
26 <% end %>