diff options
author | spag <spag@golwen.net> | 2013-05-13 09:34:30 +0200 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-05-13 09:34:30 +0200 |
commit | ef07898499292b72ce011bc9f3494cb4dade1d6b (patch) | |
tree | 1a5a63120b4100c2dd4c50d0697ef6d5ac2405a9 | |
parent | b41fb3bc6ddf9a4bf66bfd3a80dc19dedb72c8ea (diff) |
cache pagination and sortation
-rw-r--r-- | app/views/users/_index_core.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/users/_index_core.html.haml b/app/views/users/_index_core.html.haml index 78510a2..7038457 100644 --- a/app/views/users/_index_core.html.haml +++ b/app/views/users/_index_core.html.haml @@ -1,4 +1,4 @@ -- cache(['user_table_row_inner_td', I18n.locale, current_user, users.reorder(:updated_at).last, users.count, GsParameter.get('NUMBER_OF_SHOWN_ITEMS')]) do +- cache(['user_table_row_inner_td', I18n.locale, current_user, users.reorder(:updated_at).last, users.first, users.last, GsParameter.get('NUMBER_OF_SHOWN_ITEMS')]) do - if defined?(users.total_pages) = will_paginate users, :renderer => BootstrapPagination::Rails, :previous_label => raw('<i class = "icon-chevron-left"></i>'), :next_label => raw('<i class = "icon-chevron-right"></i>') |