修改质量分支控制器名

This commit is contained in:
huang 2016-06-21 16:50:45 +08:00
parent d5631defb5
commit e3b6bd19e1
9 changed files with 12 additions and 12 deletions

View File

@ -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'

View File

@ -1,4 +1,4 @@
class QualityAnalysesController < ApplicationController
class QualityAnalysisController < ApplicationController
before_filter :find_project_by_project_id#, :except => [:getattachtype]
layout "base_projects"
include ApplicationHelper

View File

@ -1,2 +0,0 @@
module QualityAnalysesHelper
end

View File

@ -0,0 +1,2 @@
module QualityAnalysisHelper
end

View File

@ -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' %>

View File

@ -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'

View File

@ -1,5 +0,0 @@
require 'rails_helper'
RSpec.describe QualityAnalysesController, :type => :controller do
end

View File

@ -0,0 +1,5 @@
require 'rails_helper'
RSpec.describe QualityAnalysisController, :type => :controller do
end