Commit db3c273235c94338faabf672bb85e3a67a314557
1 parent
6ea57739
Exists in
master
and in
29 other branches
ActionItem280: fixed a change in the partial reciving a variable _hit_ when it should be _article_
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1661 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
3 changed files
with
6 additions
and
10 deletions
Show diff stats
app/views/search/_article.rhtml
1 | 1 | <li> |
2 | -<% if hit %> | |
3 | - <strong><%= link_to(hit.title, hit.url) %></strong> | |
2 | + <strong><%= link_to(article.title, article.url) %></strong> | |
4 | 3 | <div class="item_meta"> |
5 | - <% if hit.last_changed_by %> | |
4 | + <% if article.last_changed_by %> | |
6 | 5 | <span class="cat_item_by"> |
7 | - <%= _('by %s') % link_to(hit.last_changed_by.name, hit.last_changed_by.url) %> | |
6 | + <%= _('by %s') % link_to(article.last_changed_by.name, article.last_changed_by.url) %> | |
8 | 7 | </span> |
9 | 8 | <% end %> |
10 | - <span class="cat_item_update"><%= _('Last update: %s.') % show_date(hit.updated_on) %></span> | |
9 | + <span class="cat_item_update"><%= _('Last update: %s.') % show_date(article.updated_on) %></span> | |
11 | 10 | </div> |
12 | -<% else %> | |
13 | - Problem to show this hit (_article.rhtml) | |
14 | -<% end %> | |
15 | 11 | </li> | ... | ... |
app/views/search/_display_results.rhtml
... | ... | @@ -6,7 +6,7 @@ |
6 | 6 | <% end %> |
7 | 7 | <ul> |
8 | 8 | <% results.each do |hit| %> |
9 | - <%= render :partial => partial_for_class(hit.class), :object => hit, :locals => { :hit => hit } %> | |
9 | + <%= render :partial => partial_for_class(hit.class), :object => hit %> | |
10 | 10 | <% end %> |
11 | 11 | </ul> |
12 | 12 | </div> | ... | ... |
app/views/search/tag.rhtml
... | ... | @@ -8,7 +8,7 @@ |
8 | 8 | |
9 | 9 | <div class='search-tagged-items'> |
10 | 10 | <% @tagged.each do |hit| %> |
11 | - <%= render :partial => partial_for_class(hit.class), :locals => { :hit => hit } %> | |
11 | + <%= render :partial => partial_for_class(hit.class), :object => hit %> | |
12 | 12 | <br style='clear: left;'/> |
13 | 13 | <% end %> |
14 | 14 | </div> | ... | ... |