Append "view details" link to Nominatim search results
This commit is contained in:
parent
2da8c8c413
commit
887f456209
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue