scinote-web/app/views/repository_rows/index.json.jbuilder

13 lines
478 B
Text
Raw Normal View History

# frozen_string_literal: true
json.draw @draw
json.data do
2018-03-09 00:36:10 +08:00
json.array! prepare_row_columns(@repository_rows,
@repository,
@columns_mappings,
2020-04-07 18:36:01 +08:00
@repository.team,
defined?(@datatable_params) ? @datatable_params : {})
end
json.recordsFiltered @repository_rows.first ? @repository_rows.first.filtered_count : 0
json.recordsTotal @all_rows_count