- in_section :dashboard - content_for :header do %h1 Account Administration - @active_tab ||= "basics" %ul.nav.nav-tabs %li{:class => "#{'active' if @active_tab=='basics'}"} %a{:href => "#basics", "data-toggle" => "tab"} Basics -if @ability.can? :manage, Kit %li{:class => "#{'active' if @active_tab=='kits'}"} %a{:href => "#kits", "data-toggle" => "tab"} Kits -if @ability.can? :view, User %li{:class => "#{'active' if @active_tab=='users'}"} %a{:href => "#users", "data-toggle" => "tab"} Users .tab-content .tab-pane#basics{:class => "#{'active' if @active_tab=='basics'}"} =render :partial => "basics" -if @ability.can? :manage, Kit .tab-pane#kits{:class => "#{'active' if @active_tab=='kits'}"} = render :partial => "kits/list", :locals => { :kits => @kits } -if @ability.can? :view, User .tab-pane#users{:class => "#{'active' if @active_tab=='users'}"} = render :partial => "user_memberships/list", :locals => { :organization => @organization } -if @ability.can? :manage, @organization = render :partial => 'connection_form', :locals => { :organization => @organization }