Commit 285463b5f78174186c7c06558a472268f7ddc0e3

Authored by AntonioTerceiro
1 parent 0999076c

ActionItem567: using the right icon for articles

git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2293 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/views/search/_article.rhtml
1 1 <li>
  2 + <%= image_tag 'icons-mime/text-html.png', :style => 'float: left' %>
2 3 <strong><%= link_to(article.title, article.url) %></strong>
3 4 <div class="item_meta">
4 5 <% if article.last_changed_by %>
... ...
app/views/search/_display_results.rhtml
... ... @@ -30,7 +30,8 @@
30 30 <% hit_pos = 0 %>
31 31 <% results.each do |hit| %>
32 32 <% next if hit.respond_to?(:public_profile) && !hit.public_profile %>
33   - <%= render :partial => partial,
  33 + <%= render :partial => partial_for_class(hit.class),
  34 +
34 35 :object => hit,
35 36 :locals => { :pos => ( hit_pos += 1 ) } %>
36 37 <% end %>
... ...
public/stylesheets/controller_search.css
... ... @@ -167,7 +167,7 @@
167 167 }
168 168  
169 169 #content .search-results-type-article ul,
170   -#content .search-results-type-article ul,
  170 +#content .search-results-type-article li,
171 171 #content .search-results-type-event ul,
172 172 #content .search-results-type-event li {
173 173 margin: 0px;
... ...