X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/034982a12fa025af8c1d381cd09483c97fb29dbe..32c0a7e5a874d0369bcde1bc8cbdb1f04d1463c1:/app/views/geocoder/_results.rhtml?ds=inline 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) %>