diff --git a/app/views/search/_article.rhtml b/app/views/search/_article.rhtml index 5e4d70c..1ceab9b 100644 --- a/app/views/search/_article.rhtml +++ b/app/views/search/_article.rhtml @@ -1,4 +1,5 @@
  • + <%= image_tag 'icons-mime/text-html.png', :style => 'float: left' %> <%= link_to(article.title, article.url) %>
    <% if article.last_changed_by %> diff --git a/app/views/search/_display_results.rhtml b/app/views/search/_display_results.rhtml index 3e53da6..fb436c0 100644 --- a/app/views/search/_display_results.rhtml +++ b/app/views/search/_display_results.rhtml @@ -30,7 +30,8 @@ <% hit_pos = 0 %> <% results.each do |hit| %> <% next if hit.respond_to?(:public_profile) && !hit.public_profile %> - <%= render :partial => partial, + <%= render :partial => partial_for_class(hit.class), + :object => hit, :locals => { :pos => ( hit_pos += 1 ) } %> <% end %> diff --git a/public/stylesheets/controller_search.css b/public/stylesheets/controller_search.css index e32987a..5f0f6bb 100644 --- a/public/stylesheets/controller_search.css +++ b/public/stylesheets/controller_search.css @@ -167,7 +167,7 @@ } #content .search-results-type-article ul, -#content .search-results-type-article ul, +#content .search-results-type-article li, #content .search-results-type-event ul, #content .search-results-type-event li { margin: 0px; -- libgit2 0.21.2