From 8bf701532cfb0009a367aa936b21b7f3fe338a5d Mon Sep 17 00:00:00 2001 From: Peter Kozak Date: Tue, 30 Apr 2013 11:44:31 +0200 Subject: call button added --- app/views/voicemail_messages/_index_core.html.haml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/views/voicemail_messages') diff --git a/app/views/voicemail_messages/_index_core.html.haml b/app/views/voicemail_messages/_index_core.html.haml index fcaefb4..0616b61 100644 --- a/app/views/voicemail_messages/_index_core.html.haml +++ b/app/views/voicemail_messages/_index_core.html.haml @@ -59,5 +59,8 @@ - else = link_to raw(" ") + t('voicemail_messages.index.actions.mark_read'), mark_read_voicemail_account_voicemail_message_path(@voicemail_account, voicemail_message), :method => :put %td + - if @available_sip_account && @available_sip_account.registration && can?(:call, voicemail_message) + = link_to raw(" ") + t('voicemail_messages.index.actions.call'), call_voicemail_account_voicemail_message_path(@voicemail_account, voicemail_message), :method => :put, :class => 'btn btn-mini' + - if can? :destroy, voicemail_message = link_to raw(" ") + t('voicemail_messages.index.actions.destroy'), [@voicemail_account, voicemail_message], :method => :delete, :remote => true, :class => 'btn btn-mini btn-danger' -- cgit v1.2.3