|
|
|
@@ -1,11 +1,11 @@ |
|
|
|
json.author do |
|
|
|
author = User.find_by(login: commit['Author']['Name']) |
|
|
|
json.partial! 'repositories/commit_author', locals: { user: author } |
|
|
|
json.partial! 'repositories/commit_author', locals: { user: author, name: commit['Committer']['Name'] } |
|
|
|
end |
|
|
|
|
|
|
|
json.committer do |
|
|
|
author = User.find_by(login: commit['Committer']['Name']) |
|
|
|
json.partial! 'repositories/commit_author', locals: { user: author } |
|
|
|
json.partial! 'repositories/commit_author', locals: { user: author, name: commit['Committer']['Name'] } |
|
|
|
end |
|
|
|
json.timestamp render_unix_time(commit['Committer']['When']) |
|
|
|
json.time_from_now time_from_now(commit['Committer']['When']) |
|
|
|
|