summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-26 23:07:08 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-26 23:07:08 +0100
commit2e21387f7b494ec2121b01219737700f3f59012c (patch)
treea8a4f945fad5e7a4585f965c2a838237a28c2482 /app/views
parente905a61d1aa42629fa20837365dc879925d5204e (diff)
UI improvements.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/call_histories/_index_core.html.haml8
1 files changed, 4 insertions, 4 deletions
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