summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/views/tenants/_admin_area.de.html.haml2
-rw-r--r--app/views/tenants/_admin_area.en.html.haml2
-rw-r--r--app/views/tenants/_table_of_voicemail_accounts.html.haml8
3 files changed, 12 insertions, 0 deletions
diff --git a/app/views/tenants/_admin_area.de.html.haml b/app/views/tenants/_admin_area.de.html.haml
index cfcbcf3..8ca1e79 100644
--- a/app/views/tenants/_admin_area.de.html.haml
+++ b/app/views/tenants/_admin_area.de.html.haml
@@ -16,6 +16,8 @@
= render :partial => 'tenants/table_of_phone_books', :locals => {:tenant => tenant}
+ = render :partial => 'tenants/table_of_voicemail_accounts', :locals => {:tenant => tenant}
+
= render :partial => 'generic_files', :locals => {:tenant => tenant}
.well
diff --git a/app/views/tenants/_admin_area.en.html.haml b/app/views/tenants/_admin_area.en.html.haml
index f0d1e56..a10f75a 100644
--- a/app/views/tenants/_admin_area.en.html.haml
+++ b/app/views/tenants/_admin_area.en.html.haml
@@ -16,6 +16,8 @@
= render :partial => 'tenants/table_of_phone_books', :locals => {:tenant => tenant}
+ = render :partial => 'tenants/table_of_voicemail_accounts', :locals => {:tenant => tenant}
+
= render :partial => 'generic_files', :locals => {:tenant => tenant}
.well
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}