mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
add: user headmap
This commit is contained in:
5
app/views/users/headmaps/index.json.jbuilder
Normal file
5
app/views/users/headmaps/index.json.jbuilder
Normal file
@@ -0,0 +1,5 @@
|
||||
json.total_contributions @headmaps.collect{|map| map["contributions"]}.reduce(0, :+)
|
||||
json.headmaps @headmaps.each do |map|
|
||||
json.date map["timestamp"]
|
||||
json.contributions map["contributions"]
|
||||
end
|
||||
Reference in New Issue
Block a user