修改质量分支控制器名
This commit is contained in:
parent
d5631defb5
commit
e3b6bd19e1
2
Gemfile
2
Gemfile
|
@ -10,7 +10,7 @@ gem 'net-ssh'
|
|||
gem 'jenkins_api_client'
|
||||
gem 'nokogiri'
|
||||
|
||||
gem 'certified'
|
||||
# gem 'certified'
|
||||
|
||||
gem 'wechat',path: 'lib/wechat'
|
||||
gem 'grack', path:'lib/grack'
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
class QualityAnalysesController < ApplicationController
|
||||
class QualityAnalysisController < ApplicationController
|
||||
before_filter :find_project_by_project_id#, :except => [:getattachtype]
|
||||
layout "base_projects"
|
||||
include ApplicationHelper
|
|
@ -1,2 +0,0 @@
|
|||
module QualityAnalysesHelper
|
||||
end
|
|
@ -0,0 +1,2 @@
|
|||
module QualityAnalysisHelper
|
||||
end
|
|
@ -1,4 +1,4 @@
|
|||
<%= form_tag( url_for(:controller => 'quality_analyses', :action => 'create', :project_id => @project.id), :remote => true , :class => 'resourcesSearchloadBox mt10', :id => 'quality_analyses_form') do %>
|
||||
<%= form_tag( url_for(:controller => 'quality_analysis', :action => 'create', :project_id => @project.id), :remote => true , :class => 'resourcesSearchloadBox mt10', :id => 'quality_analyses_form') do %>
|
||||
<textarea id="path_description" name="path" rows="8" placeholder="目录相当于根目录,用半逗号隔开。如:src/main/java,libs"></textarea>
|
||||
<%= select_tag :branch, options_for_select(["#{@gitlab_default_branch}"]+ @branch_names, @rev), :id => 'branch' %>
|
||||
<%= select_tag :language, options_for_select(["Java","C","PHP", "Web"]), :id => 'branch' %>
|
||||
|
|
|
@ -782,7 +782,7 @@ RedmineApp::Application.routes.draw do
|
|||
end
|
||||
end
|
||||
|
||||
resources :quality_analyses, :only => [:index, :new, :create] do
|
||||
resources :quality_analysis, :only => [:index, :new, :create] do
|
||||
collection do
|
||||
end
|
||||
member do
|
||||
|
@ -909,7 +909,7 @@ RedmineApp::Application.routes.draw do
|
|||
|
||||
# repositories routes
|
||||
get 'projects/:id/repository/:repository_id/statistics', :to => 'repositories#stats', :as => "stats_repository_project"
|
||||
get 'projects/:id/repository/:repository_id/quality_analyses', :to => 'repositories#quality_analyses', :as => "quality_analyses"
|
||||
get 'projects/:id/repository/:repository_id/quality_analysis', :to => 'repositories#quality_analysis', :as => "quality_analysis"
|
||||
get 'projects/:id/repository/:repository_id/graph', :to => 'repositories#graph'
|
||||
|
||||
get 'projects/:id/repository/:repository_id/changes(/*path(.:ext))', :to => 'repositories#changes'
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe QualityAnalysesController, :type => :controller do
|
||||
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
require 'rails_helper'
|
||||
|
||||
RSpec.describe QualityAnalysisController, :type => :controller do
|
||||
|
||||
end
|
Loading…
Reference in New Issue