mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 20:55:46 +08:00
14 lines
278 B
Ruby
14 lines
278 B
Ruby
|
|
json.last_commit do
|
|
if @latest_commit
|
|
json.partial! 'commit', commit: @latest_commit, project: @project
|
|
else
|
|
json.nil!
|
|
end
|
|
end
|
|
json.entries do
|
|
json.array! @sub_entries do |entry|
|
|
json.partial! 'repositories/simple_entry', locals: { entry: entry }
|
|
end
|
|
end
|