This commit is contained in:
Jasder
2020-10-22 22:16:55 +08:00
parent 91c9423c72
commit bfbe1fdce5
4 changed files with 16 additions and 5 deletions
+2 -2
View File
@@ -30,7 +30,7 @@ module ProjectsHelper
def json_response(project, user)
# repo = project.repository
repo = Repository.select(:id).find_by(project: project)
repo = Repository.select(:id, :mirror_url).find_by(project: project)
tmp_json = {}
unless project.common?
@@ -83,6 +83,6 @@ module ProjectsHelper
end
def render_avatar_url(owner)
[Rails.application.config_for(:configuration)['platform_url'], 'images', url_to_avatar(owner)].join('/')
['images', url_to_avatar(owner)].join('/')
end
end