Module: CspReport::HeadersHelper

Defined in:
app/helpers/csp_report/headers_helpers.rb

Instance Method Summary collapse

Instance Method Details

#add_navigation_headerObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'app/helpers/csp_report/headers_helpers.rb', line 3

def add_navigation_header
  "  <div class='csp-report row'>\n<div class='csp-report navbar navbar-fixed-top'>\n  <div class='csp-report navbar-inner'>\n    <div class='csp-report container'>\n      <a class='brand' href=\"#\">CSP Reports</a>\n      <ul class='nav'>\n        <li class='active'>\n          <a href=\#{csp_reports_path}>Violations</a>\n        </li>\n        <li class='divider-vertical'/>\n        <li>\n          <a href=\#{csp_reports_report_by_ip_path}>By IP</a>\n        </li>\n        <li>\n          <a href=\#{csp_reports_report_by_rule_path}>By Violated Directive</a>\n        </li>\n        <li>\n          <a href=\#{csp_reports_report_by_source_path}>By Source Document URI</a>\n        </li>\n      </ul>\n    </div>\n  </div>\n</div>\n  </div>\n  CONTENT\nend\n"