summaryrefslogtreecommitdiff
path: root/app/views/tenants/_table_of_sip_accounts.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/tenants/_table_of_sip_accounts.html.haml')
-rw-r--r--app/views/tenants/_table_of_sip_accounts.html.haml12
1 files changed, 8 insertions, 4 deletions
diff --git a/app/views/tenants/_table_of_sip_accounts.html.haml b/app/views/tenants/_table_of_sip_accounts.html.haml
index b2f2612..4a1d570 100644
--- a/app/views/tenants/_table_of_sip_accounts.html.haml
+++ b/app/views/tenants/_table_of_sip_accounts.html.haml
@@ -5,7 +5,7 @@
-#
%h2= t('sip_accounts.index.page_title')
- if tenant.sip_accounts.any?
- = render "sip_accounts/index_core", :sip_accounts => tenant.sip_accounts
+ = render "sip_accounts/index_core", :sip_accounts => tenant.sip_accounts, :show_sip_accountable => true
= render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => SipAccount}
.span8
@@ -18,7 +18,11 @@
.span12
-# SIP accounts
-#
+ - sip_accounts = @tenant.tenant_user_sip_accounts
%h2= t('sip_accounts.index.page_title')
- - if tenant.sip_accounts.any?
- = render "sip_accounts/index_core", :sip_accounts => tenant.sip_accounts
- = render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => SipAccount}
+ - if sip_accounts.count <= GsParameter.get('NUMBER_OF_SHOWN_ITEMS')
+ = render "sip_accounts/index_core", :sip_accounts => sip_accounts, :show_sip_accountable => true
+ = render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => SipAccount}
+ - else
+ %p
+ = link_to t('sip_accounts.index.page_title'), tenant_sip_accounts_path(tenant)