blob: d93ebe67cec0cb75fbff129d087a9ae25eab4007 (
plain)
1
2
3
4
5
6
7
8
|
- cache(['table_of_pbx_features_hunt_groups_row', I18n.locale, tenant, tenant.hunt_groups.count, tenant.hunt_groups.reorder(:updated_at).last, PhoneNumber.where(:phone_numberable_type => 'HuntGroup').order(:updated_at).last]) do
-# HuntGroups
-#
- if (can?( :index, HuntGroup ) && tenant.hunt_groups.count > 0 ) || can?( :create, HuntGroup )
%h2= t('hunt_groups.index.page_title')
- if can?( :index, HuntGroup ) && tenant.hunt_groups.count > 0
= render "hunt_groups/index_core", :hunt_groups => tenant.hunt_groups
= render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => HuntGroup}
|