新增:贡献者分页

This commit is contained in:
2023-03-22 18:57:56 +08:00
parent ec85b80a98
commit 3762a54eff
3 changed files with 24 additions and 8 deletions

View File

@@ -1,7 +1,6 @@
total_count = @contributors.size
json.list @contributors.each do |contributor|
json.partial! 'contributor', locals: { contributor: contributor, project: @project }
end
json.total_count total_count
json.total_count @total_count