summaryrefslogtreecommitdiff
path: root/app/views/sip_accounts/_index_core.html.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-20 19:06:19 +0200
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-06-20 19:06:19 +0200
commiteb0e1cc5c26275ff3e5c341404e8bc558f8312b8 (patch)
tree71f449ccd6f15422717de3ac24f87d5e888ddd79 /app/views/sip_accounts/_index_core.html.haml
parentdf6e17e48995f25e72509986f30700d778b179b6 (diff)
parent3b27a5d45b12f6bac65da2a8e17387bfda42a2f1 (diff)
Merge branch 'develop'
Diffstat (limited to 'app/views/sip_accounts/_index_core.html.haml')
-rw-r--r--app/views/sip_accounts/_index_core.html.haml11
1 files changed, 10 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..be1f4cb 100644
--- a/app/views/sip_accounts/_index_core.html.haml
+++ b/app/views/sip_accounts/_index_core.html.haml
@@ -1,10 +1,16 @@
+
+- 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>')
+
%table.table.table-striped
%thead
%tr
+ - if defined?(show_sip_accountable) && show_sip_accountable
+ %th= sortable :sip_accountable_id, t('sip_accounts.index.sip_accountable')
%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')
@@ -16,6 +22,9 @@
%tbody
- for sip_account in sip_accounts
%tr{:class => (sip_account.registration ? '' : 'warning')}
+ - if defined?(show_sip_accountable) && show_sip_accountable
+ %td
+ = sip_account.sip_accountable
%td
- if sip_account.registration
%i.icon-ok