{
  "draw": "<%= @requests_data_table.draw %>",
  "recordsTotal": "<%= @requests_data_table.records_total %>",
  "recordsFiltered": "<%= @requests_data_table.count_requests %>",
  "data": [
    <% @requests_data_table.rows.each.with_index do |row,index | %>
      [
        "<%= escape_javascript(fuzzy_time(row.created_at, false)) %>",
        "<%= escape_javascript(project_or_package_link(project: row.source_project, package: row.source_package, creator: row.creator, trim_to: 40, short: true)) %>",
        "<%= escape_javascript(target_project_link(row)) %>",
        "<%= escape_javascript(user_with_realname_and_icon(row.creator, short: true)) %>",
        "<%= escape_javascript(row.request_type) %>",
        "<%= escape_javascript(row.priority) %>",
        "<%= escape_javascript(link_to(sprite_tag('req-showdiff', title: "Show request ##{row.number}"), request_show_path(row.number), { class: :request_link })) %>"
      ]
      <% unless index == @requests_data_table.rows.length - 1 %>
        ,
      <% end %>
    <% end %>
  ]
}
