#
class AlertsController < ApplicationController
- SECTION=Navigation::SECTION_CONFIGURATION
+ before_filter :hide_sidebar
#
#
@breadcrumbs.concat(breadcrumbs)
end
+ def hide_sidebar
+ @hide_sidebar = true
+ end
+
#
# SETTINGS
#
def subcategory_name(category, subcategory)
message("property.category.#{category}.#{subcategory}", :default => subcategory)
end
+
end
#
class ProfilesController < ApplicationController
- SECTION=Navigation::SECTION_CONFIGURATION
-
ROOT_BREADCRUMB = {:name => Api::Utils.message('quality_profiles.page'), :url => {:controller => 'profiles', :action => 'index'}}
+ before_filter :hide_sidebar
+
# GET /profiles/index
def index
add_breadcrumbs ROOT_BREADCRUMB
class RulesConfigurationController < ApplicationController
- SECTION=Navigation::SECTION_CONFIGURATION
+ before_filter :hide_sidebar
STATUS_ACTIVE = "ACTIVE"
STATUS_INACTIVE = "INACTIVE"
<% elsif selected_section==Navigation::SECTION_CONFIGURATION %>
- <li class="<%= 'active' if request.request_uri.include?('/profiles') || request.request_uri.include?('/alerts') || request.request_uri.include?('/rules_configuration') -%>">
- <a href="<%= ApplicationController.root_context -%>/profiles"><%= message('quality_profiles.page') -%></a></li>
-
<% if is_admin? %>
<li class="spacer"></li>