diff options
author | Peter Kozak <spag@golwen.net> | 2013-04-19 10:34:34 +0200 |
---|---|---|
committer | Peter Kozak <spag@golwen.net> | 2013-04-19 10:34:34 +0200 |
commit | 9a78a0b46509751f912275f8290b009d4a2221fc (patch) | |
tree | f30e651451402d08597b794da1cb4180ad32a167 /app/views/tenants/_table_of_voicemail_accounts.html.haml | |
parent | 75bc8af34e4ea625725206f015b04730fad8de63 (diff) |
voicemai_accounts added to tenant view
Diffstat (limited to 'app/views/tenants/_table_of_voicemail_accounts.html.haml')
-rw-r--r-- | app/views/tenants/_table_of_voicemail_accounts.html.haml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/tenants/_table_of_voicemail_accounts.html.haml b/app/views/tenants/_table_of_voicemail_accounts.html.haml new file mode 100644 index 0000000..1cf455a --- /dev/null +++ b/app/views/tenants/_table_of_voicemail_accounts.html.haml @@ -0,0 +1,8 @@ +- cache(['table_of_pbx_features_voicemail_accounts_row', I18n.locale, tenant, tenant.voicemail_accounts.count, tenant.voicemail_accounts.reorder(:updated_at).last]) do + -# VoicemailAccounts + -# + - if (can?( :index, VoicemailAccount ) && tenant.voicemail_accounts.count > 0 ) || can?( :create, VoicemailAccount ) + %h2= t('voicemail_accounts.index.page_title') + - if can?( :index, VoicemailAccount ) && tenant.voicemail_accounts.count > 0 + = render "voicemail_accounts/index_core", :voicemail_accounts => tenant.voicemail_accounts + = render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => VoicemailAccount} |