diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-22 23:46:57 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-22 23:46:57 +0100 |
commit | 7c842dd79b3ac4a8bd462ef80ee1e27f5e74e4d3 (patch) | |
tree | 84e5874864302c955575a753e0755bf97a91bf0b /app/views/sip_accounts | |
parent | f64e0935ea0b31230d1a18a27dfb5993a6e9ff02 (diff) |
Optimized views for phones.
Diffstat (limited to 'app/views/sip_accounts')
-rw-r--r-- | app/views/sip_accounts/_index_core.html.haml | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/app/views/sip_accounts/_index_core.html.haml b/app/views/sip_accounts/_index_core.html.haml index ff09c37..e94db83 100644 --- a/app/views/sip_accounts/_index_core.html.haml +++ b/app/views/sip_accounts/_index_core.html.haml @@ -1,10 +1,16 @@ %table{:class => 'table table-striped'} %thead %tr - %th= t('sip_accounts.index.online') + %th + %span.hidden-phone + = t('sip_accounts.index.online') %th= t('sip_accounts.index.caller_name') - %th= t('sip_accounts.index.phone_numbers') - %th= t('phones.name') + %th + %span.hidden-phone + = t('sip_accounts.index.phone_numbers') + %th + %span.hidden-phone + = t('phones.name') %tbody - for sip_account in sip_accounts @@ -22,6 +28,7 @@ = 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 ) + %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 |