]> git.openstreetmap.org Git - rails.git/commitdiff
geocoder stuff - views
authorNick Black <nickb@svn.openstreetmap.org>
Tue, 1 May 2007 13:24:44 +0000 (13:24 +0000)
committerNick Black <nickb@svn.openstreetmap.org>
Tue, 1 May 2007 13:24:44 +0000 (13:24 +0000)
app/views/geocoder/_geocoder.rhtml [new file with mode: 0644]
app/views/geocoder/results.rhtml [new file with mode: 0644]

diff --git a/app/views/geocoder/_geocoder.rhtml b/app/views/geocoder/_geocoder.rhtml
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/app/views/geocoder/results.rhtml b/app/views/geocoder/results.rhtml
new file mode 100644 (file)
index 0000000..3d7ee90
--- /dev/null
@@ -0,0 +1,29 @@
+<h2>Your Search Results for <%= @place_name.capitalize %></h2>
+
+<table>
+<tr>
+<th>Name</th>
+<th>Country</th>
+<th><Go to the Map </th>
+<th><Get from the API </th>
+</tr>
+
+<% @res_ary.each do |hsh| %>
+
+<tr>
+<td>
+<%=  hsh['name'] %>
+</td>
+<td>
+<%= hsh['countryname'] %>
+</td>
+<td>
+<%= link_to('Map', url="/index.html?lat=#{hsh['lat']}&lon=#{hsh['lon']}&zoom=12") %>  
+</td>
+<td>
+<%= link_to('API', url="/#FIXME") %>  
+</td>
+</tr>
+<% end %>
+
+</table>