From: Imre Farkas <ifarkas(a)redhat.com>
---
src/app/controllers/pools_controller.rb | 6 +++---
src/app/views/layouts/_tabpanel.html.haml | 4 +++-
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/app/controllers/pools_controller.rb
b/src/app/controllers/pools_controller.rb
index b351522..2c917b7 100644
--- a/src/app/controllers/pools_controller.rb
+++ b/src/app/controllers/pools_controller.rb
@@ -37,9 +37,9 @@ class PoolsController < ApplicationController
@user_pools = Pool.list_for_user(current_user, Privilege::CREATE, Deployment)
if filter_view?
- @tabs = [{:name => "#{t'pools.pools'}", :view =>
'list', :id => 'pools'},
- {:name => "#{t'deployments.deployments'}", :view
=> 'deployments/list', :id => 'deployments'},
- {:name => "#{t'instances.instances.other'}", :view
=> 'instances/list', :id => 'instances'},
+ @tabs = [{:name => "#{t'pools.pools'}", :view =>
'list', :id => 'pools', :pretty_view_toggle => 'enabled'},
+ {:name => "#{t'deployments.deployments'}", :view
=> 'deployments/list', :id => 'deployments', :pretty_view_toggle
=> 'enabled'},
+ {:name => "#{t'instances.instances.other'}", :view
=> 'instances/list', :id => 'instances', :pretty_view_toggle =>
'enabled'},
]
details_tab_name = params[:details_tab].blank? ? 'pools' :
params[:details_tab]
@details_tab = @tabs.find {|t| t[:id] == details_tab_name} ||
@tabs.first[:name].downcase
diff --git a/src/app/views/layouts/_tabpanel.html.haml
b/src/app/views/layouts/_tabpanel.html.haml
index 4cf3760..277ba1c 100644
--- a/src/app/views/layouts/_tabpanel.html.haml
+++ b/src/app/views/layouts/_tabpanel.html.haml
@@ -4,7 +4,9 @@
%ul#tab-container-1-nav
- @tabs.each do |tab|
%li
- %a{ :href => url_for(:details_tab => tab[:id], :view =>
"filter", :only_tab => true), :id => "details_#{tab[:id]}",
:class => "#{'active' if @details_tab[:id] == tab[:id]}"}
+ %a{ :href => url_for(:details_tab => tab[:id], :view =>
"filter", :only_tab => true),
+ :id => "details_#{tab[:id]}", :class =>
"#{'active' if @details_tab[:id] == tab[:id]}",
+ 'data-pretty_view_toggle' => tab[:pretty_view_toggle] }
= tab[:name]
.section-controls
-#%a.collapse{'href'=>'#'} Collapse
--
1.7.6.5
Show replies by date