Browse Source

项目动态增加提交日志

pull/342/head
xxq250 3 years ago
parent
commit
827e265fc5
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/views/project_trends/_detail.json.jbuilder

+ 3
- 1
app/views/project_trends/_detail.json.jbuilder View File

@@ -19,8 +19,10 @@ if trend.trend_type == "Issue"
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.name commit_log.message
json.created_at format_time(commit_log.created_at)
json.commit_log do
commit_log = trend.trend
json.user do
json.partial! 'users/user_simple', locals: {user: commit_log.user}
end


Loading…
Cancel
Save