diff options
author | Julian Pawlowski <julian.pawlowski@gmail.com> | 2013-01-23 18:03:06 +0100 |
---|---|---|
committer | Julian Pawlowski <julian.pawlowski@gmail.com> | 2013-01-23 18:03:06 +0100 |
commit | 398d5706752a583ff8bc3ec9101fc75b507bbb89 (patch) | |
tree | a31b27b4cd1a2e05e64199814ca0ab92eb177a62 /app/views/sip_accounts | |
parent | e5db9179c75b6b6176e4f5b67ff94a10122ecfbd (diff) | |
parent | 4cad2a069fcead88579373a285a0516a3d500c43 (diff) |
Merge branch 'develop' of https://github.com/amooma/GS5 into develop
Diffstat (limited to 'app/views/sip_accounts')
-rw-r--r-- | app/views/sip_accounts/_index_core.html.haml | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/app/views/sip_accounts/_index_core.html.haml b/app/views/sip_accounts/_index_core.html.haml index e94db83..bc1555f 100644 --- a/app/views/sip_accounts/_index_core.html.haml +++ b/app/views/sip_accounts/_index_core.html.haml @@ -8,9 +8,10 @@ %th %span.hidden-phone = t('sip_accounts.index.phone_numbers') - %th - %span.hidden-phone - = t('phones.name') + - if sip_accounts.map{ |sip_account| sip_account.phone_sip_accounts.any? }.include?(true) + %th + %span.hidden-phone + = t('phones.name') %tbody - for sip_account in sip_accounts @@ -26,9 +27,9 @@ %td - if sip_account.phone_numbers.count > 0 = render 'phone_numbers/listing', :phone_numbers => sip_account.phone_numbers.order(:number) - - %td - %span.hidden-phone - - 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 + - if sip_accounts.map{ |sip_account| sip_account.phone_sip_accounts.any? }.include?(true) + %td + %span.hidden-phone + - 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} |