forgeplus/app/views/repositories/commits.json.jbuilder

11 lines
378 B
Plaintext
Raw Normal View History

2020-03-09 00:40:16 +08:00
json.total_count @hash_commit[:total_count]
json.commits do
json.array! @hash_commit[:body] do |commit|
json.sha commit['sha']
json.message commit['commit']['message']
json.timestamp render_unix_time(commit['commit']['author']['date'])
json.time_from_now time_from_now(commit['commit']['author']['date'])
json.partial! 'author', user: @repo.user
end
end