diff options
author | Peter Kozak <spag@golwen.net> | 2013-06-11 11:18:57 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-06-11 11:18:57 +0200 |
commit | 53fcf258f5dd86c81d6b2d7d58857e45481605b9 (patch) | |
tree | 5d0487e9b86f22a1d52696406d107f30c4881b73 /app | |
parent | 6dc4eab14aad402d350e31aef2806b88bf457f84 (diff) |
limit displayed sip_accounts
Diffstat (limited to 'app')
-rw-r--r-- | app/views/tenants/_table_of_sip_accounts.html.haml | 7 |
1 files changed, 5 insertions, 2 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..e0acbc2 100644 --- a/app/views/tenants/_table_of_sip_accounts.html.haml +++ b/app/views/tenants/_table_of_sip_accounts.html.haml @@ -19,6 +19,9 @@ -# SIP accounts -# %h2= t('sip_accounts.index.page_title') - - if tenant.sip_accounts.any? + - if @tenant.sip_accounts.count <= GsParameter.get('NUMBER_OF_SHOWN_ITEMS') = render "sip_accounts/index_core", :sip_accounts => tenant.sip_accounts - = render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => SipAccount} + = 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) |