summaryrefslogtreecommitdiff
path: root/app/views/sip_accounts
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-04-29 15:40:44 +0200
committerPeter Kozak <spag@golwen.net>2013-04-29 15:40:44 +0200
commit905a8d0715018188d952d99af5f4686437b4a779 (patch)
treeb4a6564060532d7b831ff5ed1ea7fc0d9053013c /app/views/sip_accounts
parent265c6e89e46be414cac6e8a33b35591282cb0ae9 (diff)
sorting and paginations
Diffstat (limited to 'app/views/sip_accounts')
-rw-r--r--app/views/sip_accounts/_index_core.html.haml5
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')