Style the "view details" link in search results

This commit is contained in:
Tom Hughes 2013-05-06 10:47:49 +01:00
parent 887f456209
commit 8bb7cdb75a
2 changed files with 12 additions and 2 deletions

View file

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

View file

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