Append "view details" link to Nominatim search results

This commit is contained in:
Dan Stowell 2013-05-04 10:22:12 +01:00 committed by Tom Hughes
parent 2da8c8c413
commit 887f456209

View file

@ -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)