diff options
author | Peter Kozak <spag@golwen.net> | 2013-04-29 15:40:44 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-04-29 15:40:44 +0200 |
commit | 905a8d0715018188d952d99af5f4686437b4a779 (patch) | |
tree | b4a6564060532d7b831ff5ed1ea7fc0d9053013c | |
parent | 265c6e89e46be414cac6e8a33b35591282cb0ae9 (diff) |
sorting and paginations
-rw-r--r-- | app/views/sip_accounts/_index_core.html.haml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/sip_accounts/_index_core.html.haml b/app/views/sip_accounts/_index_core.html.haml index d98ea0a..7f393d7 100644 --- a/app/views/sip_accounts/_index_core.html.haml +++ b/app/views/sip_accounts/_index_core.html.haml @@ -1,10 +1,13 @@ +.pagination + - if defined?(users.total_pages) + = will_paginate users, :renderer => BootstrapPagination::Rails %table.table.table-striped %thead %tr %th %span.hidden-phone = t('sip_accounts.index.online') - %th= t('sip_accounts.index.caller_name') + %th= sortable :caller_name, t('sip_accounts.index.caller_name') %th %span.hidden-phone = t('sip_accounts.index.phone_numbers') |