summaryrefslogtreecommitdiff
path: root/app/views/tenants/_admin_area.html.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-10 21:58:54 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-10 21:58:54 +0100
commit878412b12dd34004d37b8b79945786e506f8fa08 (patch)
tree23048e74ac7f0eecc9f99bea757be66de322aab8 /app/views/tenants/_admin_area.html.haml
parentc0dfdfce54b2e698580893d18ea101ecaab89aad (diff)
parent9f0034ff3c969c867258a90d1a9c6f76f392092a (diff)
Merge branch 'refactor_tenant_view' into develop
Diffstat (limited to 'app/views/tenants/_admin_area.html.haml')
-rw-r--r--app/views/tenants/_admin_area.html.haml25
1 files changed, 1 insertions, 24 deletions
diff --git a/app/views/tenants/_admin_area.html.haml b/app/views/tenants/_admin_area.html.haml
index afd50b5..c838a18 100644
--- a/app/views/tenants/_admin_area.html.haml
+++ b/app/views/tenants/_admin_area.html.haml
@@ -25,30 +25,7 @@
= succeed '.' do
=link_to manufacturer, manufacturer_path(manufacturer)
-%h3 SIP-Accounts and Phones
-
-%table
- %tr{:class => 'even'}
- %th
- %th
- = @tenant
- %th
- All users of
- = "\"#{@tenant}\""
- %tr{:class => 'odd'}
- %td
- SIP accounts
- %td
- = link_to @tenant.sip_accounts.count.to_s, tenant_sip_accounts_path(@tenant)
- = render :partial => 'shared/create_link', :locals => {:parent => @tenant, :child_class => SipAccount}
- %td= @tenant.users_sip_accounts.count.to_s
- %tr{:class => 'even'}
- %td
- Phones
- %td
- = link_to @tenant.phones.count.to_s, tenant_phones_path(@tenant)
- = render :partial => 'shared/create_link', :locals => {:parent => @tenant, :child_class => Phone}
- %td= @tenant.users_phones.count.to_s
+= render :partial => 'tenants/sip_accounts_and_phones', :locals => {:tenant => @tenant}
%h3 Misc