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
[FIX]成员细节修改
tags/v3.0.1
viletyy
5 years ago
parent
7f309edc91
commit
31858a79e3
3 changed files
with
14 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+8
-0
app/views/organizations/_user_detail.json.jbuilder
+3
-2
app/views/organizations/organization_users/_detail.json.jbuilder
+3
-2
app/views/organizations/team_users/_detail.json.jbuilder
+ 8
- 0
app/views/organizations/_user_detail.json.jbuilder
View File
@@ -0,0 +1,8 @@
json.user_id user.id
json.login user.login
json.name user.full_name
json.mail user.mail
json.identity user.identity
json.watched current_user.watched?(user)
# json.email user.mail # 邮箱原则上不暴露的,如果实在需要的话只能对某些具体的接口公开
json.image_url url_to_avatar(user)
+ 3
- 2
app/views/organizations/organization_users/_detail.json.jbuilder
View File
@@ -1,6 +1,7 @@
json.id org_user.id
json.user do
json.partial! "
/users/user
", user: org_user.user
json.partial! "
organizations/user_detail
", user: org_user.user
end
json.team_names org_user.teams.pluck(:name)
json.team_names org_user.teams.pluck(:name)
json.created_at org_user.created_at.strftime("%Y-%m-%d")
+ 3
- 2
app/views/organizations/team_users/_detail.json.jbuilder
View File
@@ -1,4 +1,5 @@
json.id team_user.id
json.user do
json.partial! "/users/user", user: team_user.user
end
json.partial! "organizations/user_detail", user: team_user.user
end
json.created_at team_user.created_at.strftime("%Y-%m-%d")
Write
Preview
Loading…
Cancel
Save