This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
Gitlink
/
forgeplus
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
16
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
Merge pull request '组织项目列表返回仓库url' (
#221
) from yystopf/forgeplus:pm_project_develop into pm_project_develop
pull/347/head
yystopf
2 years ago
parent
7da8102782
c2f64adf17
commit
a0e34c9ddd
2 changed files
with
6 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-0
app/models/project.rb
+1
-0
app/views/organizations/projects/index.json.jbuilder
+ 5
- 0
app/models/project.rb
View File
@@ -485,6 +485,11 @@ class Project < ApplicationRecord
return JSON.parse(cache_result)
end
end
def full_url
Rails.application.config_for(:configuration)['platform_url'] + '/' + self.owner.try(:login) + '/' + self.identifier
end
def to_builder
Jbuilder.new do |project|
project.id self.id
+ 1
- 0
app/views/organizations/projects/index.json.jbuilder
View File
@@ -25,4 +25,5 @@ json.projects @projects.each do |project|
json.topics project.project_topics.each do |topic|
json.(topic, :id, :name)
end
json.url project.full_url
end
Write
Preview
Loading…
Cancel
Save