summaryrefslogtreecommitdiff
path: root/app/views/users/_switchboards.html.haml
blob: f79d6b8f648ee4fb83005530cdc748c9a94cd214 (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 => Conference}