Commit b28b3e860e9af260b366769035440b2f0157736f
1 parent
7b85b607
Exists in
master
and in
29 other branches
Show recent content on Article search view when query is empty
Showing
1 changed file
with
2 additions
and
4 deletions
Show diff stats
app/views/search/articles.rhtml
@@ -10,10 +10,8 @@ | @@ -10,10 +10,8 @@ | ||
10 | <%= render :partial => 'search_form', :locals => { :hint => _('Type the title, author or content desired') } %> | 10 | <%= render :partial => 'search_form', :locals => { :hint => _('Type the title, author or content desired') } %> |
11 | <%= render :partial => 'results_header' %> | 11 | <%= render :partial => 'results_header' %> |
12 | 12 | ||
13 | - <% if !@empty_query or @filter %> | ||
14 | - <%= display_results %> | ||
15 | - <%= pagination_links @results.values.first %> | ||
16 | - <% end %> | 13 | + <%= display_results %> |
14 | + <%= pagination_links @results[:articles] %> | ||
17 | </div> | 15 | </div> |
18 | 16 | ||
19 | <div style="clear: both"></div> | 17 | <div style="clear: both"></div> |