|
|
|
@ -37,8 +37,8 @@ class RepositoriesController < ApplicationController
|
|
|
|
|
accept_rss_auth :revisions
|
|
|
|
|
# hidden repositories filter // 隐藏代码过滤器
|
|
|
|
|
before_filter :check_hidden_repo, :only => [:show, :stats, :revisions, :revision, :diff ]
|
|
|
|
|
helper :repositories
|
|
|
|
|
include RepositoriesHelper
|
|
|
|
|
helper :repositories
|
|
|
|
|
include GitlabHelper
|
|
|
|
|
#@root_path = RepositoriesHelper::ROOT_PATH
|
|
|
|
|
|
|
|
|
@ -244,6 +244,12 @@ class RepositoriesController < ApplicationController
|
|
|
|
|
private :pickup_extra_info
|
|
|
|
|
|
|
|
|
|
def committers
|
|
|
|
|
gitlab_project = GitlabProject.find_by_repository_url(@repository.url)
|
|
|
|
|
if gitlab_project
|
|
|
|
|
# gitlab项目
|
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
# 老模式
|
|
|
|
|
@committers = @repository.committers
|
|
|
|
|
@users = @project.users
|
|
|
|
|
additional_user_ids = @committers.collect(&:last).collect(&:to_i) - @users.collect(&:id)
|
|
|
|
@ -257,6 +263,7 @@ class RepositoriesController < ApplicationController
|
|
|
|
|
redirect_to settings_project_path(@project, :tab => 'repositories')
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def destroy
|
|
|
|
|
@root_path=RepositoriesHelper::ROOT_PATH
|
|
|
|
|