summaryrefslogtreecommitdiff
path: root/app/views/users/_switchboards.html.haml
blob: 183b6aebe6f65ce00e9605d01f21814d7df135a9 (plain)
1
2
3
4
5
6
7
-# Switchboards
-#
- if SipAccount.any? && (can?( :index, Switchboard ) && user.switchboards.any? ) || can?( :create, Switchboard )
  %h2= t('switchboards.index.page_title')
  - if can?( :index, Switchboard ) && user.switchboards.count > 0
    = render :partial => "switchboards/index_core", :locals => {:switchboards => user.switchboards, :user => user}
  = render :partial => 'shared/create_link', :locals => {:parent => user, :child_class => Switchboard}