Sha256: c6fb3f8ab7c06063a89f54f8b61b35d24e749bb58d173c738cd9682b7d37411e

Contents?: true

Size: 852 Bytes

Versions: 171

Compression:

Stored size: 852 Bytes

Contents

- content_for(:body_class) { "audits-show" }

- content_for(:javascript) do
  javascript:
    var userConfiguredColumns = eval(#{raw(audit.display_configuration)})['columnDefs'];

    $("body").ready(function() {
      $("body.audits-show table#audit").DataTable(
        {
          ajax: "#{reporting_audit_path(audit, format: :json)}",
          columns: userConfiguredColumns
        }
      );
    });

= within_admin_layout(title: audit.name, breadcrumbs: audits_breadcrumb) do

  - if audit.description.present?
    .panel.radius.compact= audit.description

  / jQuery dataTables will build this table; for the columns it will use column definitions in
  / audit.display_configuration. Json data comes from the the audit view
  / specified by the audit row; the json data is fetched via a separate ajax call.
  table#audit.display.natural-width

Version data entries

171 entries across 171 versions & 1 rubygems

Version Path
renalware-core-2.0.104 app/views/renalware/reporting/audits/show.html.slim
renalware-core-2.0.103 app/views/renalware/reporting/audits/show.html.slim
renalware-core-2.0.102 app/views/renalware/reporting/audits/show.html.slim
renalware-core-2.0.101 app/views/renalware/reporting/audits/show.html.slim
renalware-core-2.0.100 app/views/renalware/reporting/audits/show.html.slim
renalware-core-2.0.99 app/views/renalware/reporting/audits/show.html.slim
renalware-core-2.0.98 app/views/renalware/reporting/audits/show.html.slim
renalware-core-2.0.97 app/views/renalware/reporting/audits/show.html.slim
renalware-core-2.0.96 app/views/renalware/reporting/audits/show.html.slim
renalware-core-2.0.95 app/views/renalware/reporting/audits/show.html.slim
renalware-core-2.0.94 app/views/renalware/reporting/audits/show.html.slim
renalware-core-2.0.93 app/views/renalware/reporting/audits/show.html.slim
renalware-core-2.0.92 app/views/renalware/reporting/audits/show.html.slim
renalware-core-2.0.91 app/views/renalware/reporting/audits/show.html.slim
renalware-core-2.0.90 app/views/renalware/reporting/audits/show.html.slim
renalware-core-2.0.89 app/views/renalware/reporting/audits/show.html.slim
renalware-core-2.0.88 app/views/renalware/reporting/audits/show.html.slim
renalware-core-2.0.87 app/views/renalware/reporting/audits/show.html.slim
renalware-core-2.0.86 app/views/renalware/reporting/audits/show.html.slim
renalware-core-2.0.85 app/views/renalware/reporting/audits/show.html.slim