Commit 285463b5f78174186c7c06558a472268f7ddc0e3
1 parent
0999076c
Exists in
master
and in
22 other branches
ActionItem567: using the right icon for articles
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2293 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
3 changed files
with
4 additions
and
2 deletions
Show diff stats
app/views/search/_article.rhtml
| 1 | <li> | 1 | <li> |
| 2 | + <%= image_tag 'icons-mime/text-html.png', :style => 'float: left' %> | ||
| 2 | <strong><%= link_to(article.title, article.url) %></strong> | 3 | <strong><%= link_to(article.title, article.url) %></strong> |
| 3 | <div class="item_meta"> | 4 | <div class="item_meta"> |
| 4 | <% if article.last_changed_by %> | 5 | <% if article.last_changed_by %> |
app/views/search/_display_results.rhtml
| @@ -30,7 +30,8 @@ | @@ -30,7 +30,8 @@ | ||
| 30 | <% hit_pos = 0 %> | 30 | <% hit_pos = 0 %> |
| 31 | <% results.each do |hit| %> | 31 | <% results.each do |hit| %> |
| 32 | <% next if hit.respond_to?(:public_profile) && !hit.public_profile %> | 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 | :object => hit, | 35 | :object => hit, |
| 35 | :locals => { :pos => ( hit_pos += 1 ) } %> | 36 | :locals => { :pos => ( hit_pos += 1 ) } %> |
| 36 | <% end %> | 37 | <% end %> |
public/stylesheets/controller_search.css
| @@ -167,7 +167,7 @@ | @@ -167,7 +167,7 @@ | ||
| 167 | } | 167 | } |
| 168 | 168 | ||
| 169 | #content .search-results-type-article ul, | 169 | #content .search-results-type-article ul, |
| 170 | -#content .search-results-type-article ul, | 170 | +#content .search-results-type-article li, |
| 171 | #content .search-results-type-event ul, | 171 | #content .search-results-type-event ul, |
| 172 | #content .search-results-type-event li { | 172 | #content .search-results-type-event li { |
| 173 | margin: 0px; | 173 | margin: 0px; |