% results.each do |source| %> <% 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? %><%= t'geocoder.results.no_results' %>
<% else %> <% source[:results].each do |result| %><%= result_to_html(result) %>
<% end %> <% end %> <% else %><%= source[:error] %>
<% end %> <% end %>