commit加入到项目动态,并显示详情
This commit is contained in:
parent
cba729f482
commit
0a693a77b8
|
@ -18,6 +18,13 @@ if trend.trend_type == "Issue"
|
|||
json.partial! "issues/simple_issue_item", locals: {issue: trend.trend}
|
||||
elsif trend.trend_type == "VersionRelease"
|
||||
json.partial! "version_releases/simple_version_release", locals: {version: trend.trend}
|
||||
elsif trend.trend_type == "CommitLog"
|
||||
commit_log = trend.trend
|
||||
json.user do
|
||||
json.partial! 'users/user_simple', locals: {user: commit_log.user}
|
||||
end
|
||||
json.ref commit_log.ref.to_s.gsub("refs/heads/", "")
|
||||
json.extract! commit_log, :id,:name,:full_name,:message, :commit_id,:created_at,:updated_at
|
||||
else
|
||||
json.name trend.trend&.title
|
||||
json.created_at format_time(trend.trend&.created_at)
|
||||
|
|
|
@ -18,6 +18,7 @@ zh-CN:
|
|||
Issue: 疑修(Issue)
|
||||
PullRequest: 合并请求(PR)
|
||||
VersionRelease: 版本发布
|
||||
CommitLog: 代码(Commit)
|
||||
create: 创建了
|
||||
journal: 回复了
|
||||
close: 关闭了
|
||||
|
|
Loading…
Reference in New Issue