X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/034982a12fa025af8c1d381cd09483c97fb29dbe..d0b845fc6025f2fb84a4cf4fa10cbb71084843a7:/app/views/geocoder/_results.rhtml diff --git a/app/views/geocoder/_results.rhtml b/app/views/geocoder/_results.rhtml index 477f2a0bc..bf42244f9 100644 --- a/app/views/geocoder/_results.rhtml +++ b/app/views/geocoder/_results.rhtml @@ -1,8 +1,9 @@ <% results.each do |source| %> -

Results from <%= link_to source[:source], source[:url] %>

+<% type = source[:type] || t('geocoder.results.results') %> +

<%= t'geocoder.results.type_from_source', :type => type, :source_link => link_to(source[:source], source[:url]) %>

<% if source[:results] %> <% if source[:results].empty? %> -

No results found

+

<%= t'geocoder.results.no_results' %>

<% else %> <% source[:results].each do |result| %>

<%= result_to_html(result) %>