diff options
author | Peter Kozak <spag@golwen.net> | 2013-04-29 15:11:16 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-04-29 15:11:16 +0200 |
commit | 165d746547658d63ad80ed6a7c781629c29be5ea (patch) | |
tree | bed3927434ad19c36ebd3ae4a0a2a18808a31fbd | |
parent | 9d9bf18ab11aa67e967b09f774af5c651f6064ce (diff) |
pagination and sorting added
-rw-r--r-- | app/views/users/_index_core.html.haml | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/views/users/_index_core.html.haml b/app/views/users/_index_core.html.haml index 9d63afc..c994997 100644 --- a/app/views/users/_index_core.html.haml +++ b/app/views/users/_index_core.html.haml @@ -1,16 +1,18 @@ - cache(['user_table_row_inner_td', I18n.locale, current_user, users.reorder(:updated_at).last, users.count, GsParameter.get('NUMBER_OF_SHOWN_ITEMS')]) do + .pagination + = will_paginate users, :renderer => BootstrapPagination::Rails %table.table.table-striped %thead %tr %th - %th= t('users.index.user_name') + %th= sortable :user_name, t('users.index.user_name') %th %span.hidden-phone - = t('users.index.email') + = sortable :email, t('users.index.email') %th %span.hidden-phone - = t('users.index.first_name') - %th= t('users.index.last_name') + = sortable :first_name, t('users.index.first_name') + %th= sortable :last_name, t('users.index.last_name') %tbody - for user in users |