]> git.openstreetmap.org Git - rails.git/blob - app/views/geocoder/results.rhtml
Potlatch on Rails, first working version
[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><Go to the Map </th>
8 <th><Get from the API </th>
9 </tr>
10
11 <% @res_ary.each do |hsh| %>
12
13 <tr>
14 <td>
15 <%=  hsh['name'] %>
16 </td>
17 <td>
18 <%= hsh['countryname'] %>
19 </td>
20 <td>
21 <%= link_to('Map', url="/index.html?mlat=#{hsh['lat']}&mlon=#{hsh['lon']}&zoom=12") %>  
22 </td>
23 <td>
24 <%= link_to('API', url="/#FIXME") %>  
25 </td>
26 </tr>
27 <% end %>
28
29 </table>