summaryrefslogtreecommitdiff
path: root/app/views/tenants/_sip_accounts_and_phones.html.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-22 00:04:03 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-22 00:04:03 +0100
commitab63774d954fe1f967a97ffe5a0a66016eca2257 (patch)
treeb3974a58deabe6a989ad7352f10e75d7495cb0c5 /app/views/tenants/_sip_accounts_and_phones.html.haml
parent495bbfdf78206c8adaec057e83900dda6754092c (diff)
parentf8bc860750f06ab95f9ced8e919e846d3e589819 (diff)
Merge branch 'tb-css' into develop
Diffstat (limited to 'app/views/tenants/_sip_accounts_and_phones.html.haml')
-rw-r--r--app/views/tenants/_sip_accounts_and_phones.html.haml8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/tenants/_sip_accounts_and_phones.html.haml b/app/views/tenants/_sip_accounts_and_phones.html.haml
index 4b84b1c..bcc2dd6 100644
--- a/app/views/tenants/_sip_accounts_and_phones.html.haml
+++ b/app/views/tenants/_sip_accounts_and_phones.html.haml
@@ -1,12 +1,12 @@
-%table
- %tr{:class => 'even'}
+%table{:class => 'table table-striped'}
+ %tr
%th
%th= t("sip_accounts.index.page_title")
%th= t("phones.index.page_title")
- cache(['tenant_show_admin_area_sip_accounts_and_phones_row', I18n.locale, @tenant, @tenant.sip_accounts.count, @tenant.sip_accounts.reorder(:updated_at).last, @tenant.phones.count, @tenant.phones.reorder(:updated_at).last]) do
- %tr{:class => 'odd'}
+ %tr
%td= tenant
- cache(['tenant_show_admin_area_sip_accounts_table_cell', I18n.locale, @tenant, @tenant.sip_accounts.count, @tenant.sip_accounts.reorder(:updated_at).last]) do
%td
@@ -33,7 +33,7 @@
= link_to "#{phone.phone_model.to_s} (#{phone.pretty_mac_address})#{(phone.ip_address.blank? ? '' : " - #{phone.ip_address}")}", tenant_phone_path(tenant, phone)
= render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => Phone}
- %tr{:class => 'even'}
+ %tr
%td= t("users.index.page_title")
%td
- if tenant.users_sip_accounts.any?