mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-10 06:49:49 +08:00
init project
This commit is contained in:
3
app/views/users/shixuns/index.json.jbuilder
Normal file
3
app/views/users/shixuns/index.json.jbuilder
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
json.count @count
|
||||
json.shixuns @shixuns, partial: 'users/shixuns/shared/shixun', as: :shixun, locals: { user: observed_user }
|
||||
10
app/views/users/shixuns/shared/_shixun.json.jbuilder
Normal file
10
app/views/users/shixuns/shared/_shixun.json.jbuilder
Normal file
@@ -0,0 +1,10 @@
|
||||
json.id shixun.id
|
||||
json.identifier shixun.identifier
|
||||
json.tag shixun.first_tag_repertoire&.name
|
||||
json.image_url url_to_avatar(shixun)
|
||||
json.name shixun.name
|
||||
json.status shixun.status
|
||||
json.human_status shixun.human_status
|
||||
json.challenges_count shixun.challenges_count
|
||||
json.finished_challenges_count @finished_challenges_count_map&.fetch(shixun.id, 0) || shixun.finished_challenges_count(user)
|
||||
json.is_jupyter shixun.is_jupyter
|
||||
Reference in New Issue
Block a user