From 887f456209e1ed26016acaed51a8ffd1f6593f91 Mon Sep 17 00:00:00 2001 From: Dan Stowell Date: Sat, 4 May 2013 10:22:12 +0100 Subject: [PATCH 1/1] Append "view details" link to Nominatim search results --- app/helpers/geocoder_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/helpers/geocoder_helper.rb b/app/helpers/geocoder_helper.rb index 8f662bde7..70bb43846 100644 --- a/app/helpers/geocoder_helper.rb +++ b/app/helpers/geocoder_helper.rb @@ -16,6 +16,7 @@ module GeocoderHelper html << result[:prefix] if result[:prefix] html << " " if result[:prefix] and result[:name] html << link_to(result[:name], url, html_options) if result[:name] + html << (" [" + link_to(t("browse.#{result[:type]}_history.view_details"), :controller => :browse, :action => result[:type], :id => result[:id]) + "]") if (result[:type] && result[:id]) html << result[:suffix] if result[:suffix] return raw(html) -- 2.43.2