]> git.openstreetmap.org Git - rails.git/blob - app/views/user/account.rhtml
messaging stuff
[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 <% if @user.nearby.empty? %>
14 There are no users mapping in your area.  Better go out and spread the word about OSM!
15 <% else %>
16
17 <p>These users are mapping in your area:</p>
18 <table>
19 <tr>
20 <th>Email</th>
21 <th>Name</th>
22 <th>Contact</th>
23 </tr>
24 <% @user.nearby(1,1).each do |nearby| %>
25
26 <tr>
27 <td><%= nearby.email %></td>
28 <td><%= nearby.display_name %></td>
29 <td>FIXME: send user an email</td>
30 </tr>
31 <%end%>
32 </table>
33
34 <%end%>
35 <br />
36 FIXME: OL Map showing the users on
37
38 <h2>Privacy</h2>
39 <% if @user.data_public? %>
40   All your edits are public.
41 <% else %>
42   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.
43   <br /><br />
44   <%= start_form_tag :controller => 'user', :action => 'go_public'%>
45   <%= submit_tag 'Make all my edits public, forever' %>
46   <%= end_form_tag %>
47 <% end %>