Browse Source

修复

pull/342/head
yystopf 3 years ago
parent
commit
7e0158345c
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      app/views/repositories/_contributor.json.jbuilder

+ 5
- 5
app/views/repositories/_contributor.json.jbuilder View File

@@ -1,12 +1,12 @@
user = $redis_cache.hgetall("v2-owner-common:#{contributor["login"]}-#{contributor["email"]}")
user = $redis_cache.hgetall("v2-owner-common:#{contributor["name"]}-#{contributor["email"]}")
if user.blank?
json.contributions contributor["contributions"]
# json.gid contributor["id"]
json.login contributor["login"]
json.login contributor["name"]
json.type nil
json.name contributor["login"]
json.image_url User::Avatar.get_letter_avatar_url(contributor["login"])
json.contribution_perc User.new(login: contributor["login"], mail: contributor["email"]).simple_contribution_perc(project, contributor["contribution_perc"])
json.name contributor["name"]
json.image_url User::Avatar.get_letter_avatar_url(contributor["name"])
json.contribution_perc User.new(login: contributor["name"], mail: contributor["email"]).simple_contribution_perc(project, contributor["contribution_perc"])
else
json.contributions contributor["contributions"]
# json.gid contributor["id"]


Loading…
Cancel
Save