]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user/account.rhtml
messaging stuff
[rails.git] / app / views / user / account.rhtml
index 90433f825450e29ab44c7c9c59560daacdd32c1e..77930d0b0ec02670dceb7cad06c566092dc1d162 100644 (file)
 
 <h2>Users in your area</h2>
 
-These users are mapping in your area:
+<% if @user.nearby.empty? %>
+There are no users mapping in your area.  Better go out and spread the word about OSM!
+<% else %>
+
+<p>These users are mapping in your area:</p>
+<table>
+<tr>
+<th>Email</th>
+<th>Name</th>
+<th>Contact</th>
+</tr>
+<% @user.nearby(1,1).each do |nearby| %>
 
+<tr>
+<td><%= nearby.email %></td>
+<td><%= nearby.display_name %></td>
+<td>FIXME: send user an email</td>
+</tr>
+<%end%>
+</table>
 
+<%end%>
+<br />
+FIXME: OL Map showing the users on
 
 <h2>Privacy</h2>
 <% if @user.data_public? %>