summaryrefslogtreecommitdiff
path: root/app/views/users/_switchboards.html.haml
blob: 8dca15f3ef479d2c8a986d44ae0cb37a8c605bc5 (plain)
1
2
3
4
5
6
7
-# Switchboards
-#
- if (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}