From 2e21387f7b494ec2121b01219737700f3f59012c Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Sat, 26 Jan 2013 23:07:08 +0100 Subject: UI improvements. --- app/views/call_histories/_index_core.html.haml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/views') diff --git a/app/views/call_histories/_index_core.html.haml b/app/views/call_histories/_index_core.html.haml index d80071c..489892c 100644 --- a/app/views/call_histories/_index_core.html.haml +++ b/app/views/call_histories/_index_core.html.haml @@ -14,7 +14,7 @@ - for call_history in call_histories - if !call_history.display_number.blank? - phone_book_entry = call_history.phone_book_entry_by_number(call_history.display_number) - %tr{:id => "call_history_id_#{call_history.id}_tr"} + %tr{:id => "call_history_id_#{call_history.id}_tr", :class => (call_history.duration.blank? ? 'warning' : '')} %td - if call_history.voicemail_message? .voicemail-message @@ -50,7 +50,7 @@ %ul.thumbnails %li.span1 %div.thumbnail - %a.thumbnail{:href => image} + %a.thumbnail{:href => call_history.display_image(:profile, phone_book_entry)} =image_tag(image, :alt => phone_book_entry.to_s, :class => 'img-rounded') - display_name = call_history.display_name @@ -63,9 +63,9 @@ .phone= call_history.display_number %td - if call_history.display_duration - .duration= call_history.display_duration + = call_history.display_duration - else - .disposition= t("call_histories.call_results.#{call_history.result}") + = t("call_histories.call_results.#{call_history.result}") %td - if @sip_account.registration && can?(:call, call_history) = link_to t('call_histories.index.actions.call'), call_sip_account_call_history_path(@sip_account, call_history), :method => :put -- cgit v1.2.3