|
|
|
@@ -19,12 +19,14 @@ 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.user do |
|
|
|
json.partial! 'users/user_simple', locals: {user: commit_log.user} |
|
|
|
json.commit_log do |
|
|
|
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 |
|
|
|
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) |
|
|
|
|