will_paginate -> paginate.

This commit is contained in:
Uģis Ozols 2011-07-27 22:53:46 +03:00
parent d3da59e3f2
commit bba9d632d6
5 changed files with 10 additions and 14 deletions

View file

@ -10,11 +10,11 @@
<% end %>
<% else %>
<% if @blog_categories.any? %>
<%= will_paginate @blog_categories %>
<%= paginate @blog_categories %>
<%= render :partial => "sortable_list" %>
<%= will_paginate @blog_categories %>
<%= paginate @blog_categories %>
<% else %>
<p>
<strong>

View file

@ -3,28 +3,24 @@
<% if searching? %>
<h2><%= t('results_for', :scope => 'shared.admin.search', :query => params[:search]) %></h2>
<% if @blog_comments.any? %>
<%=# will_paginate @blog_comments
%>
<%=# paginate @blog_comments %>
<ul>
<%= render :partial => "blog_comments",
:collection => @blog_comments %>
</ul>
<%=# will_paginate @blog_comments
%>
<%=# paginate @blog_comments %>
<% else %>
<p><%= t('search_no_results', :scope => 'admin') %></p>
<% end %>
<% else %>
<% if @blog_comments.any? %>
<%=# will_paginate @blog_comments
%>
<%=# paginate @blog_comments %>
<%= render :partial => "sortable_list" %>
<%=# will_paginate @blog_comments
%>
<%=# paginate @blog_comments %>
<% else %>
<h3>
<%= t('.no_items_yet',

View file

@ -10,11 +10,11 @@
<% end %>
<% else %>
<% if @blog_posts.any? %>
<%= will_paginate @blog_posts %>
<%= paginate @blog_posts %>
<%= render :partial => "sortable_list" %>
<%= will_paginate @blog_posts %>
<%= paginate @blog_posts %>
<% else %>
<p>
<strong>

View file

@ -4,7 +4,7 @@
<% if @blog_posts.any? %>
<section id="blog_posts">
<%= render :partial => "/blog/shared/post", :collection => @blog_posts %>
<%= will_paginate @blog_posts %>
<%= paginate @blog_posts %>
</section>
<% else %>
<p>

View file

@ -4,7 +4,7 @@
<% if @blog_posts.any? %>
<section id="blog_posts">
<%= render :partial => "/blog/shared/post", :collection => @blog_posts %>
<%= will_paginate @blog_posts %>
<%= paginate @blog_posts %>
</section>
<% else %>
<p><%= t('.no_blog_articles_yet') %></p>