From e5fa1fc32609426693b43a4e8b6208867371d30e Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Sat, 26 Jan 2013 23:19:09 +0100 Subject: UI improvements. --- app/views/call_histories/_index_core.html.haml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'app/views/call_histories/_index_core.html.haml') diff --git a/app/views/call_histories/_index_core.html.haml b/app/views/call_histories/_index_core.html.haml index 489892c..7409203 100644 --- a/app/views/call_histories/_index_core.html.haml +++ b/app/views/call_histories/_index_core.html.haml @@ -5,6 +5,7 @@ %tr %th Uhrzeit + %th %th Teilnehmer %th @@ -52,7 +53,7 @@ %div.thumbnail %a.thumbnail{:href => call_history.display_image(:profile, phone_book_entry)} =image_tag(image, :alt => phone_book_entry.to_s, :class => 'img-rounded') - + %td - display_name = call_history.display_name - if display_name.blank? - display_name = phone_book_entry.to_s @@ -68,7 +69,7 @@ = 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 + = link_to raw(" ") + t('call_histories.index.actions.call'), call_sip_account_call_history_path(@sip_account, call_history), :method => :put, :class => 'btn btn-mini' %td - if can? :destroy, call_history = link_to raw(" ") + t('call_histories.index.actions.destroy'), [@sip_account, call_history], :method => :delete, :remote => true, :class => 'btn btn-mini btn-danger' -- cgit v1.2.3