质量分析页面导航变色

This commit is contained in:
huang 2016-10-28 09:05:37 +08:00
parent 3ef90a3c62
commit 225b80d3b3
1 changed files with 6 additions and 0 deletions

View File

@ -134,6 +134,9 @@ class QualityAnalysisController < ApplicationController
end end
def error_list def error_list
# 顶部导航
@project_menu_type = 5
@error_list = SonarError.where(:jenkins_job_name => params[:job_name]).first @error_list = SonarError.where(:jenkins_job_name => params[:job_name]).first
respond_to do |format| respond_to do |format|
format.html format.html
@ -227,6 +230,9 @@ class QualityAnalysisController < ApplicationController
# resource_id: login + @repository.id # resource_id: login + @repository.id
def index def index
# 顶部导航
@project_menu_type = 5
begin begin
@branch = params[:branch] @branch = params[:branch]
@resource_id = params[:resource_id] @resource_id = params[:resource_id]