mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
8 lines
253 B
Ruby
8 lines
253 B
Ruby
json.total_count @issues.total_count
|
|
json.issues @issues.each do |issue|
|
|
if params[:only_name].present?
|
|
json.(issue, :id, :subject, :project_issues_index)
|
|
else
|
|
json.partial! "api/v1/issues/simple_detail", locals: {issue: issue}
|
|
end
|
|
end |