summaryrefslogtreecommitdiff
path: root/app/views/sip_accounts
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-22 21:21:49 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-22 21:21:49 +0100
commit8fdc1332bbff9c23400459dc7018cba147279cc5 (patch)
treeb56793380fc4305dc23060fc4294721eb859217f /app/views/sip_accounts
parenta81b51c2696e403bcd7ee59f0402f5b55527ab2c (diff)
Added %thead and %tbody to the tables.
Diffstat (limited to 'app/views/sip_accounts')
-rw-r--r--app/views/sip_accounts/_index_core.html.haml47
1 files changed, 24 insertions, 23 deletions
diff --git a/app/views/sip_accounts/_index_core.html.haml b/app/views/sip_accounts/_index_core.html.haml
index 8d9791d..ff09c37 100644
--- a/app/views/sip_accounts/_index_core.html.haml
+++ b/app/views/sip_accounts/_index_core.html.haml
@@ -1,26 +1,27 @@
%table{:class => 'table table-striped'}
- %tr
- %th= t('sip_accounts.index.online')
- %th= t('sip_accounts.index.caller_name')
- %th= t('sip_accounts.index.phone_numbers')
- %th= t('phones.name')
- %th{:colspan => '3'}
-
- - for sip_account in sip_accounts
+ %thead
%tr
- %td
- - if sip_account.registration
- %i.icon-ok
- - else
- %i.icon-thumbs-down
- %td
- = sip_account.caller_name
- - phone_numbers = sip_account.phone_numbers
- %td
- - if sip_account.phone_numbers.count > 0
- = render 'phone_numbers/listing', :phone_numbers => sip_account.phone_numbers.order(:number)
+ %th= t('sip_accounts.index.online')
+ %th= t('sip_accounts.index.caller_name')
+ %th= t('sip_accounts.index.phone_numbers')
+ %th= t('phones.name')
- %td
- - sip_account.phones.each do |phone|
- = link_to phone.to_s, method( :"#{phone.phoneable_type.underscore}_phone_path" ).( phone.phoneable_id, phone )
- =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => sip_account.sip_accountable, :child => sip_account} \ No newline at end of file
+ %tbody
+ - for sip_account in sip_accounts
+ %tr
+ %td
+ - if sip_account.registration
+ %i.icon-ok
+ - else
+ %i.icon-thumbs-down
+ %td
+ = sip_account.caller_name
+ - phone_numbers = sip_account.phone_numbers
+ %td
+ - if sip_account.phone_numbers.count > 0
+ = render 'phone_numbers/listing', :phone_numbers => sip_account.phone_numbers.order(:number)
+
+ %td
+ - sip_account.phones.each do |phone|
+ = link_to phone.to_s, method( :"#{phone.phoneable_type.underscore}_phone_path" ).( phone.phoneable_id, phone )
+ =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => sip_account.sip_accountable, :child => sip_account} \ No newline at end of file