summaryrefslogtreecommitdiff
path: root/app/views/users/_voicemail_accounts.html.haml
blob: 4410b0983624b7f7f7234db15c8766d0a235fe99 (plain)
1
2
3
4
5
6
7
-# VoicemailAccount
-#
- if (can?( :index, VoicemailAccount ) && user.voicemail_accounts.count > 0 ) || can?( :create, VoicemailAccount )
  %h2= t('voicemail_accounts.index.page_title')
  - if can?( :index, VoicemailAccount ) && user.voicemail_accounts.count > 0
    = render "voicemail_accounts/index_core", {:voicemail_accounts => user.voicemail_accounts, :voicemail_accountable => user}
  = render :partial => 'shared/create_link', :locals => {:parent => user, :child_class => VoicemailAccount}