]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/search.rhtml
search done
[rails.git] / app / views / site / search.rhtml
diff --git a/app/views/site/search.rhtml b/app/views/site/search.rhtml
new file mode 100644 (file)
index 0000000..4c7f38d
--- /dev/null
@@ -0,0 +1,24 @@
+<h2>Search results</h5>
+fixme postcodes and geonames
+
+<%= start_form_tag :controller => 'site', :action => 'search' %>
+<%= text_field 'query', 'query'%>
+<%= submit_tag 'Search' %>
+<%= end_form_tag %>
+
+
+<table border="0"> 
+  <% @tags.each do |tag| %>
+  <tr>
+    <td>
+      <%= link_to tag.v, :controller => 'site', :action => 'goto_way', :id => tag.id %> (k:<%= tag.k %>)<br>
+      <font size="-2" color="green">
+        Way <%= tag.id %> (<%= tag.way.timestamp %>)
+        <%= link_to 'Map', :controller => 'site', :action => 'goto_way', :id => tag.id %> - 
+        <%= link_to 'API', :controller => 'way', :action => 'rest', :id => tag.id %>
+        <br /><br/ >
+      </font>
+    </td>
+  </tr>
+  <% end %>
+</table>