]> git.openstreetmap.org Git - rails.git/blob - app/views/geocoder/_results.rhtml
Make a few more strings translatable in the diary entry controller
[rails.git] / app / views / geocoder / _results.rhtml
1 <% results.each do |source| %>
2 <% type = source[:type] || t('geocoder.results.results') %>
3 <p class="search_results_heading"><%= t'geocoder.results.type_from_source', :type => type, :source_link => link_to(source[:source], source[:url]) %></p>
4 <% if source[:results] %>
5 <% if source[:results].empty? %>
6 <p class="search_results_entry"><%= t'geocoder.results.no_results' %></p>
7 <% else %>
8 <% source[:results].each do |result| %>
9 <p class="search_results_entry"><%= result_to_html(result) %></p>
10 <% end %>
11 <% end %>
12 <% else %>
13 <p class="search_results_error"><%= source[:error] %></p>
14 <% end %>
15 <% end %>