diff options
author | Peter Kozak <spag@golwen.net> | 2013-06-13 11:21:07 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-06-13 11:21:07 +0200 |
commit | 525aaf6dcb5bafe5a949a078dee6abb24d87e2a5 (patch) | |
tree | d1e1ee41188b28d1ae07a2015b84c057fb7dfdad /app/views/tenants/_table_of_sip_accounts.html.haml | |
parent | 06feae4f6303ab9b08eceea5a051ddba3fc5f911 (diff) |
display tenant and user sip_accounts combined
Diffstat (limited to 'app/views/tenants/_table_of_sip_accounts.html.haml')
-rw-r--r-- | app/views/tenants/_table_of_sip_accounts.html.haml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/views/tenants/_table_of_sip_accounts.html.haml b/app/views/tenants/_table_of_sip_accounts.html.haml index e0acbc2..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,9 +18,10 @@ .span12 -# SIP accounts -# + - sip_accounts = @tenant.tenant_user_sip_accounts %h2= t('sip_accounts.index.page_title') - - if @tenant.sip_accounts.count <= GsParameter.get('NUMBER_OF_SHOWN_ITEMS') - = render "sip_accounts/index_core", :sip_accounts => tenant.sip_accounts + - 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 |