From 285463b5f78174186c7c06558a472268f7ddc0e3 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Mon, 21 Jul 2008 18:24:02 +0000 Subject: [PATCH] ActionItem567: using the right icon for articles --- app/views/search/_article.rhtml | 1 + app/views/search/_display_results.rhtml | 3 ++- public/stylesheets/controller_search.css | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) 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