You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
762 B
25 lines
762 B
5 years ago
|
json.partial! "commons/success"
|
||
|
json.issues_count @project_issues_count
|
||
|
json.open_issues_count @project_open_issues_count
|
||
|
json.close_issues_count @project_close_issues_count
|
||
|
json.limit @limit
|
||
|
json.project_trends_size @project_trends_size
|
||
|
json.project_trends do
|
||
|
json.array! @project_trends.to_a.each do |trend|
|
||
|
json.id trend.id
|
||
|
json.trend_type trend.trend_type
|
||
|
json.action_type l("trend.#{trend.action_type}") + l("trend.#{trend.trend_type}")
|
||
|
json.trend_id trend.trend_id
|
||
|
json.user_login trend.user.login
|
||
|
json.user_avatar url_to_avatar(trend.user)
|
||
|
|
||
|
if trend.trend_type == "Issue"
|
||
|
json.partial! "issues/simple_issue_item", locals: {issue: trend.trend}
|
||
|
end
|
||
|
|
||
|
#后续需要天际pullrequest 和 版本的内容
|
||
|
|
||
|
end
|
||
|
end
|
||
|
|