diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-26 22:30:19 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-26 22:30:19 +0100 |
commit | 3793a53509007054f5f5f2eb00abaa404074f252 (patch) | |
tree | 32d0dab4a1e2e9e2621671c3af39867fba4a2fd3 | |
parent | d7777f71e78ae173e26af39c7c65243b4604d6e8 (diff) |
UI improvement.
-rw-r--r-- | app/views/phone_sip_accounts/_index_core.html.haml | 2 | ||||
-rw-r--r-- | app/views/phones/show.html.haml | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/app/views/phone_sip_accounts/_index_core.html.haml b/app/views/phone_sip_accounts/_index_core.html.haml index 3656ad6..7ec04be 100644 --- a/app/views/phone_sip_accounts/_index_core.html.haml +++ b/app/views/phone_sip_accounts/_index_core.html.haml @@ -7,7 +7,7 @@ %tbody - for phone_sip_account in phone_sip_accounts - %tr + %tr{:class => (phone_sip_account.sip_account.registration ? '' : 'warning')} %td= phone_sip_account.phone %td= phone_sip_account.sip_account %td= phone_sip_account.position diff --git a/app/views/phones/show.html.haml b/app/views/phones/show.html.haml index 6bb8996..2cf6f3c 100644 --- a/app/views/phones/show.html.haml +++ b/app/views/phones/show.html.haml @@ -41,11 +41,15 @@ %td = @phone.provisioning_key_active - %tr + %tr{:class => (@phone.ip_address.blank? ? 'warning' : '')} %td %strong= t('phones.show.ip_address') + ":" %td - = @phone.ip_address + - if @phone.ip_address.blank? + %a{:href => '#', :rel => "tooltip", :title => t('phones.tool_tips.missing_ip_address'), :'data-trigger' => 'hover'} + = '-' + - else + = @phone.ip_address = render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @phone.phoneable, :child => @phone } |