verify :method => :post, :only => ['create', 'update', 'delete'], :redirect_to => { :action => 'index' }
before_filter :admin_required, :except => [ 'index' ]
+ SECTION=Navigation::SECTION_RESOURCE
#
#
#
class ComparisonController < ApplicationController
+
+ SECTION=Navigation::SECTION_RESOURCE
def index
snapshots = []
unless @snapshots.empty?
@permalink = url_for :controller => 'comparison', :action => 'index', :sids => @snapshots.map {|s| s.id.to_s}.join(','), :metrics => @metrics.map {|m| m.key}.join(',')
end
- add_breadcrumbs message('sidebar.tools'), {:name => message('comparison.page'), :url => {:controller => 'comparison', :action => 'index'}}
end
def versions
#
class DependenciesController < ApplicationController
+ SECTION=Navigation::SECTION_RESOURCE
+
SEARCH_MINIMUM_SIZE=3
QUALIFIERS=['TRK', 'BRC', 'LIB']
end
- add_breadcrumbs message('sidebar.tools'), {:name => message('dependencies.page'), :url => {:controller => 'dependencies', :action => 'index'}}
end
private
# the backup action is allow to non-admin users : see http://jira.codehaus.org/browse/SONAR-2039
before_filter :admin_required, :only => ['create', 'delete', 'set_as_default', 'copy', 'restore', 'change_parent', 'set_projects', 'rename_form', 'rename']
+ SECTION=Navigation::SECTION_RESOURCE
+
ROOT_BREADCRUMB = {:name => Api::Utils.message('quality_profiles.page'), :url => {:controller => 'profiles', :action => 'index'}}
# GET /profiles/index
class RulesConfigurationController < ApplicationController
+ SECTION=Navigation::SECTION_RESOURCE
+
STATUS_ACTIVE = "ACTIVE"
STATUS_INACTIVE = "INACTIVE"
ANY_SELECTION = [["Any", '']]
<li class="spacer"></li>
<li class="sidebar-title"><%= message('sidebar.tools') -%></li>
- <li class="<%= 'active' if request.request_uri.include?('/profiles') -%>">
+ <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>
<li class="<%= 'active' if request.request_uri.include?('/dependencies/index') -%>">
<a href="<%= ApplicationController.root_context -%>/dependencies/index"><%= message('dependencies.page') -%></a></li>