Sha256: 5dbca2a242981d2b532060714b28394940407728745f879fbd952730a851cc94

Contents?: true

Size: 1.26 KB

Versions: 2

Compression:

Stored size: 1.26 KB

Contents

=stylesheet_link_tag "csp_report/csp_report.css"

%table.csp-report.report-table
  %tr.csp-report.report-row
    %th.csp-report.report-header
      ID
    %th.csp-report.report-header
      Document URI
    %th.csp-report.report-header
      Referrer
    %th.csp-report.report-header
      Server Policy
    %th.csp-report.report-header
      Violated Directive
    %th.csp-report.report-header
      Blocked URI
    %th.csp-report.report-header
      Incoming IP
    %th.csp-report.report-header
      Reported At
    %th.csp-report.report-header
      Actions
  - @reports.each do |report|
    %tr.csp-report.report-row
      %td.csp-report.report-cell=report.id
      %td.csp-report.report-cell=report.document_uri
      %td.csp-report.report-cell=report.referrer
      %td.csp-report.report-cell=report.original_policy
      %td.csp-report.report-cell=report.violated_directive
      %td.csp-report.report-cell=report.blocked_uri
      %td.csp-report.report-cell=report.incoming_ip
      %td.csp-report.report-cell=report.created_at
      %td.csp-report.report-cell
        =link_to('Delete violation', csp_report_path(report.id), method: 'delete')

%p
  =link_to "Delete All", csp_reports_destroy_all_path, 
    data: {confirm: "Are you sure you want to delete all the violation reports?"}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
csp_report-0.3.0 app/views/csp_report/csp_reports/index.html.haml
csp_report-0.2.0 app/views/csp_report/csp_reports/index.html.haml