mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 12:45:46 +08:00
[ADD]统计平台概况
[FIX]更改请求参数 [FIX] [ADD]rank statistic [FIX]
This commit is contained in:
13
app/views/statistic/active_developer_rank.json.jbuilder
Normal file
13
app/views/statistic/active_developer_rank.json.jbuilder
Normal file
@@ -0,0 +1,13 @@
|
||||
json.total_count @active_developer_rank_query.size
|
||||
json.developers @active_developer_rank_query.each_with_index.to_a do |item, index|
|
||||
user = User.find_by(login: item["develop_name"])
|
||||
projects = user.projects
|
||||
json.no index + 1
|
||||
json.login item["develop_name"]
|
||||
json.name user.full_name
|
||||
json.develop_projects projects do |project|
|
||||
json.(project, :name, :identifier, :description)
|
||||
end
|
||||
json.total_commit_count item["total_count"]
|
||||
json.active_commit_count item["active_count"]
|
||||
end
|
||||
Reference in New Issue
Block a user