Commit 17dbf46c2bc747c7aefe850800eaef29e16d82f3

Authored by Joenio Costa
Committed by Daniela Feitosa
1 parent 4d0b3a1b

Do not use will_paginate directly to avoid mistakes with translations

(ActionItem1929)
app/views/catalog/index.rhtml
1 <%= display_products_list @profile, @products %> 1 <%= display_products_list @profile, @products %>
2 2
3 -<%= will_paginate @products %> 3 +<%= pagination_links @products %>
app/views/content_viewer/image_gallery.rhtml
@@ -16,5 +16,5 @@ @@ -16,5 +16,5 @@
16 <% end %> 16 <% end %>
17 </ul> 17 </ul>
18 <br style="clear:both" /> 18 <br style="clear:both" />
19 - <%= will_paginate @images, :param_name => 'npage' %> 19 + <%= pagination_links @images, :param_name => 'npage' %>
20 </div> 20 </div>
app/views/manage_products/index.rhtml
@@ -22,7 +22,7 @@ @@ -22,7 +22,7 @@
22 <% end %> 22 <% end %>
23 </table> 23 </table>
24 24
25 -<%= will_paginate @products %> 25 +<%= pagination_links @products %>
26 26
27 <% button_bar do %> 27 <% button_bar do %>
28 <%= button :add, _('New product or service'), :action => 'new' %> 28 <%= button :add, _('New product or service'), :action => 'new' %>
app/views/search/products.rhtml
@@ -23,6 +23,6 @@ @@ -23,6 +23,6 @@
23 </div><!-- class="has_cat_list" --> 23 </div><!-- class="has_cat_list" -->
24 <% end %> 24 <% end %>
25 25
26 -<%= will_paginate @results[:products] %> 26 +<%= pagination_links @results[:products] %>
27 27
28 <br style="clear:both" /> 28 <br style="clear:both" />