summaryrefslogtreecommitdiff
path: root/app/views/voicemail_messages
diff options
context:
space:
mode:
authorMario "Kuroir" Ricalde <kuroir@gmail.com>2013-02-13 05:39:21 -0600
committerMario "Kuroir" Ricalde <kuroir@gmail.com>2013-02-13 05:39:21 -0600
commit791bf973b02b626f876b7e5819e2037dcff90f84 (patch)
tree5d349f2ddf3f50f423538a511ef5abf40bef1582 /app/views/voicemail_messages
parent7d507dcc1bbbf5244b8d75f40c7cb6bc15906b33 (diff)
Simple Form Fixes for Form Actions
Diffstat (limited to 'app/views/voicemail_messages')
-rw-r--r--app/views/voicemail_messages/_index_core.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/voicemail_messages/_index_core.html.haml b/app/views/voicemail_messages/_index_core.html.haml
index f03002d..5e82761 100644
--- a/app/views/voicemail_messages/_index_core.html.haml
+++ b/app/views/voicemail_messages/_index_core.html.haml
@@ -24,18 +24,18 @@
%td
- if ! voicemail_message.flags.blank?
= t("voicemail_messages.index.flags.#{voicemail_message.flags}")
- %td.actions
+ %td.form-actions
- if can?(:show, voicemail_message) && File.readable?(voicemail_message.file_path)
= link_to t('voicemail_messages.index.actions.download'), sip_account_voicemail_message_path(@sip_account, voicemail_message, :format => :wav), :method => :get
%td.actions
- if @sip_account.registration && can?(:call, voicemail_message)
= link_to t('voicemail_messages.index.actions.call'), call_sip_account_voicemail_message_path(@sip_account, voicemail_message), :method => :put
- %td.actions
+ %td.form-actions
- if can?(:edit, voicemail_message) && voicemail_message.read_epoch > 0
= link_to t('voicemail_messages.index.actions.mark_unread'), mark_unread_sip_account_voicemail_message_path(@sip_account, voicemail_message), :method => :put
- else
= link_to t('voicemail_messages.index.actions.mark_read'), mark_read_sip_account_voicemail_message_path(@sip_account, voicemail_message), :method => :put
- %td.actions
+ %td.form-actions
- if can? :destroy, voicemail_message
= link_to t('voicemail_messages.index.actions.destroy'), sip_account_voicemail_message_path(@sip_account, voicemail_message), :method => :delete