|
|
|
@@ -6,6 +6,12 @@ if user.blank? |
|
|
|
json.type nil |
|
|
|
json.name contributor["login"] |
|
|
|
json.image_url User::Avatar.get_letter_avatar_url(contributor["login"]) |
|
|
|
if @cache_result.present? |
|
|
|
db_user = User.find_by_id(contributor["id"]) |
|
|
|
if db_user.present? |
|
|
|
json.contribution_perc db_user.contribution_perc(project) |
|
|
|
end |
|
|
|
end |
|
|
|
else |
|
|
|
json.contributions contributor["contributions"] |
|
|
|
# json.gid contributor["id"] |
|
|
|
|