新增:时间返回
This commit is contained in:
parent
551f9cbbad
commit
90fa4774d8
|
@ -32,6 +32,7 @@ json.issues do
|
|||
json.id issue.id
|
||||
json.name issue.subject
|
||||
json.pr_time time_from_now(pr.status == 1 ? pr.updated_at : issue.updated_on)
|
||||
json.pr_full_time pr.status == 1 ? pr.updated_at : issue.updated_on
|
||||
json.assign_user_name issue.get_assign_user.try(:show_real_name)
|
||||
json.assign_user_login issue.get_assign_user.try(:login)
|
||||
json.author_name issue.user.try(:show_real_name)
|
||||
|
|
|
@ -10,6 +10,7 @@ json.tags @tags do |tag|
|
|||
end
|
||||
json.time_ago time_from_now(tag['tagger']['date'].to_time)
|
||||
json.created_at_unix tag['tagger']['date'].to_time.to_i
|
||||
json.created_time tag['tagger']['date'].to_time
|
||||
json.message tag['message']
|
||||
json.commit do
|
||||
json.sha tag['commit']['sha']
|
||||
|
|
Loading…
Reference in New Issue