]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/geocoder/_results.html.erb
Make the search box load each set of results separately so that one
[rails.git] / app / views / geocoder / _results.html.erb
diff --git a/app/views/geocoder/_results.html.erb b/app/views/geocoder/_results.html.erb
deleted file mode 100644 (file)
index bf42244..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-<% results.each do |source| %>
-<% type = source[:type] || t('geocoder.results.results') %>
-<p class="search_results_heading"><%= t'geocoder.results.type_from_source', :type => type, :source_link => link_to(source[:source], source[:url]) %></p>
-<% if source[:results] %>
-<% if source[:results].empty? %>
-<p class="search_results_entry"><%= t'geocoder.results.no_results' %></p>
-<% else %>
-<% source[:results].each do |result| %>
-<p class="search_results_entry"><%= result_to_html(result) %></p>
-<% end %>
-<% end %>
-<% else %>
-<p class="search_results_error"><%= source[:error] %></p>
-<% end %>
-<% end %>