From 3793a53509007054f5f5f2eb00abaa404074f252 Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Sat, 26 Jan 2013 22:30:19 +0100 Subject: UI improvement. --- app/views/phones/show.html.haml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'app/views/phones') 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 } -- cgit v1.2.3