mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-04 04:03:25 +08:00
8 lines
256 B
Ruby
8 lines
256 B
Ruby
|
|
json.issues @links.each do |link|
|
|
if @issue.id == link.be_linkable_id
|
|
json.partial! "api/v1/issues/simple_detail", locals: { issue: link.linkable }
|
|
else
|
|
json.partial! "api/v1/issues/simple_detail", locals: { issue: link.be_linkable }
|
|
end
|
|
end |