mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 02:04:33 +08:00
11 lines
444 B
Ruby
11 lines
444 B
Ruby
# frozen_string_literal: true
|
|
|
|
json.draw @draw
|
|
json.data do
|
|
json.array! prepare_snapshot_row_columns(@repository_rows,
|
|
@columns_mappings,
|
|
@repository_snapshot.team,
|
|
@repository_snapshot)
|
|
end
|
|
json.recordsFiltered @repository_rows.first ? @repository_rows.first.filtered_count : 0
|
|
json.recordsTotal @all_rows_count
|