mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
新增:时间返回
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user