mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-31 04:32:06 +08:00
12 lines
478 B
Ruby
12 lines
478 B
Ruby
# frozen_string_literal: true
|
|
|
|
json.draw @draw
|
|
json.data do
|
|
json.array! prepare_row_columns(@repository_rows,
|
|
@repository,
|
|
@columns_mappings,
|
|
@repository.team,
|
|
defined?(@datatable_params) ? @datatable_params : {})
|
|
end
|
|
json.recordsFiltered @repository_rows.first ? @repository_rows.first.filtered_count : 0
|
|
json.recordsTotal @all_rows_count
|