app/views/organizations/show.html.haml in artfully_ose-1.3.0.pre1 vs app/views/organizations/show.html.haml in artfully_ose-1.3.0.pre2
- old
+ new
@@ -1,27 +1,29 @@
- in_section :dashboard
- content_for :header do
%h1 Account Administration
-.bottom-room.bordered-section
- .row
- .span3
- %h3{:style => "margin-top: 0px"} Details
- - if can? :manage, current_user.current_organization
- = link_to "Edit", edit_organization_path(@organization), {:class => "btn"}
- .span9
- %ul.kv
- %li.row-fluid
- .key.span3 Organization Name
- .value.span9= @organization.name
- %li.row-fluid
- .key.span3 Email
- .value.span9= @organization.email
- %li.row-fluid
- .key.span3 Time Zone
- .value.span9= @organization.time_zone
+- @active_tab ||= "basics"
-.bottom-room.bordered-section
- = render :partial => "kits/list", :locals => { :organization => @organization }
+%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
-.bottom-room.bordered-section
- = render :partial => "user_memberships/list", :locals => { :organization => @organization }
+ -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 }
\ No newline at end of file