]> git.openstreetmap.org Git - rails.git/blob - app/views/geocoder/results.rhtml
Link from user profile to view traces and to set home location if none is set.
[rails.git] / app / views / geocoder / results.rhtml
1 <h2>Your Search Results for <%= @place_name.capitalize %></h2>
2
3 <table>
4 <tr>
5 <th>Name</th>
6 <th>Country</th>
7 <th></th>
8 <th></th>
9 <th></th>
10 </tr>
11
12 <% @res_ary.each do |hsh| %>
13
14 <tr>
15 <td>
16 <%=  hsh['name'] %>
17 </td>
18 <td>
19 <%= hsh['countryname'] %>
20 </td>
21 <td>
22 <%= link_to('Map', url="/index.html?mlat=#{hsh['lat']}&mlon=#{hsh['lon']}&zoom=12") %>  
23 </td>
24 <td>
25 <%= link_to('Edit', url="/edit.html?mlat=#{hsh['lat']}&mlon=#{hsh['lon']}&zoom=12") %>  
26 </td>
27 <td>
28 <%= link_to('API', url="/#FIXME") %>  
29 </td>
30 </tr>
31 <% end %>
32
33 </table>