From e905a61d1aa42629fa20837365dc879925d5204e Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Sat, 26 Jan 2013 22:52:41 +0100 Subject: UI improvements. --- app/views/phone_sip_accounts/_index_core.html.haml | 2 +- app/views/sip_accounts/show.html.haml | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/views/phone_sip_accounts/_index_core.html.haml b/app/views/phone_sip_accounts/_index_core.html.haml index 7ec04be..a2d9d98 100644 --- a/app/views/phone_sip_accounts/_index_core.html.haml +++ b/app/views/phone_sip_accounts/_index_core.html.haml @@ -9,6 +9,6 @@ - for phone_sip_account in phone_sip_accounts %tr{:class => (phone_sip_account.sip_account.registration ? '' : 'warning')} %td= phone_sip_account.phone - %td= phone_sip_account.sip_account + %td= link_to phone_sip_account.sip_account, method( :"#{phone_sip_account.sip_account.sip_accountable.class.name.underscore}_#{phone_sip_account.sip_account.class.name.underscore}_path" ).(phone_sip_account.sip_account.sip_accountable, phone_sip_account.sip_account) %td= phone_sip_account.position =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => phone_sip_account.phone, :child => phone_sip_account} \ No newline at end of file diff --git a/app/views/sip_accounts/show.html.haml b/app/views/sip_accounts/show.html.haml index 8c4aa7e..c21b3f4 100644 --- a/app/views/sip_accounts/show.html.haml +++ b/app/views/sip_accounts/show.html.haml @@ -21,12 +21,12 @@ %td %strong= t('sip_accounts.show.call_waiting') + ":" %td - = @sip_account.call_waiting + = @sip_account.call_waiting == true ? t('simple_form.yes') : t('simple_form.no') %tr %td %strong= t('sip_accounts.show.clir') + ":" %td - = @sip_account.clir + = @sip_account.clir == true ? t('simple_form.yes') : t('simple_form.no') %tr %td %strong= t('sip_accounts.show.clip_no_screening') + ":" @@ -36,12 +36,13 @@ %td %strong= t('sip_accounts.show.hotdeskable') + ":" %td - = @sip_account.hotdeskable + = @sip_account.hotdeskable == true ? t('simple_form.yes') : t('simple_form.no') %tr %td %strong= t('sip_accounts.show.callforward_rules_act_per_sip_account') + ":" %td - = @sip_account.callforward_rules_act_per_sip_account + = @sip_account.callforward_rules_act_per_sip_account == true ? t('simple_form.yes') : t('simple_form.no') + - if @sip_account.registration.try(:network_ip) && @sip_account.registration.try(:network_port) %tr %td -- cgit v1.2.3