summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-04-30 11:44:31 +0200
committerPeter Kozak <spag@golwen.net>2013-04-30 11:44:31 +0200
commit8bf701532cfb0009a367aa936b21b7f3fe338a5d (patch)
tree792954c87cdcd23d9136df30ebaf3a067d31b4e5 /app
parentf9168c5a5b132eca327833613d04fef66fb8b8bd (diff)
call button added
Diffstat (limited to 'app')
-rw-r--r--app/views/voicemail_messages/_index_core.html.haml3
1 files changed, 3 insertions, 0 deletions
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("<i class = 'icon-bullhorn'></i> ") + 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("<i class = 'icon-bell'></i> ") + 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("<i class = 'icon-trash icon-white'></i> ") + t('voicemail_messages.index.actions.destroy'), [@voicemail_account, voicemail_message], :method => :delete, :remote => true, :class => 'btn btn-mini btn-danger'