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
fixed 删除用户时issue,pr用户显示已注销
pull/347/head
xxq250
1 year ago
parent
71bdde79ef
commit
1459e2f626
2 changed files
with
4 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
app/views/api/v1/users/_simple_user.json.jbuilder
+2
-1
app/views/users/_user_simple.json.jbuilder
+ 2
- 1
app/views/api/v1/users/_simple_user.json.jbuilder
View File
@@ -6,6 +6,7 @@ if user.present?
json.image_url Rails.application.config_for(:configuration)['platform_url'] + "/" + url_to_avatar(user).to_s
else
json.name "已注销"
json.login ""
json.login user&.login
json.type "User"
json.image_url Rails.application.config_for(:configuration)['platform_url'] + "/" + User::Avatar.get_letter_avatar_url("D")
end
+ 2
- 1
app/views/users/_user_simple.json.jbuilder
View File
@@ -6,6 +6,7 @@ if user.present?
json.image_url url_to_avatar(user)
else
json.name "已注销"
json.login ""
json.login user&.login
json.type "User"
json.image_url Rails.application.config_for(:configuration)['platform_url'] + "/" + User::Avatar.get_letter_avatar_url("D")
end
Write
Preview
Loading…
Cancel
Save