Style the "view details" link in search results
This commit is contained in:
parent
887f456209
commit
8bb7cdb75a
2 changed files with 12 additions and 2 deletions
|
@ -692,7 +692,12 @@ table {
|
|||
}
|
||||
|
||||
.search_results_entry {
|
||||
margin-bottom: 0 ;
|
||||
margin-bottom: 0;
|
||||
|
||||
.search_details {
|
||||
display: block;
|
||||
text-align: right;
|
||||
}
|
||||
}
|
||||
|
||||
.search_results_entry .search_searching {
|
||||
|
|
|
@ -16,9 +16,14 @@ 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]
|
||||
|
||||
if result[:type] and result[:id]
|
||||
html << content_tag(:small, :class => ["deemphasize", "search_details"]) do
|
||||
link_to(t("browse.#{result[:type]}_history.view_details"), :controller => :browse, :action => result[:type], :id => result[:id])
|
||||
end
|
||||
end
|
||||
|
||||
return raw(html)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue