File: stig_template.html

package info (click to toggle)
scap-security-guide 0.1.76-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 110,644 kB
  • sloc: xml: 241,883; sh: 73,777; python: 32,527; makefile: 27
file content (58 lines) | stat: -rw-r--r-- 1,214 bytes parent folder | download | duplicates (2)
1
2
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{{% extends "tables_template_common.html" %}}
{{% block table %}}
<div>
	<table>
		<thead>
		<tr>
			<th>Total</th>
			<th>Missing</th>
			<th>Implemented</th>
			<th>Coverage</th>
			<th>STIG ids missing rule</th>
		</tr>
		</thead>
		<tbody>
		<tr>
			<td>{{{ stats["total"] }}}</td>
			<td>{{{ stats["missing"] }}}</td>
			<td>{{{ stats["implemented"] }}}</td>
			<td>{{{ "%.2f%%"|format(stats["coverage"]) }}}</td>
			<td>
				{{% for rule in stats["missing_rules"] %}}
					{{{ rule }}}
				{{% endfor %}}
			</td>
		</tr>
		</tbody>
	</table>
</div>

<table>
	<thead>
		<td>V-ID</td>
		<td>CCI</td>
		<td>CAT</td>
		<td>Title</td>
		<td>SRG</td>
		<td>Description</td>
		<td>Check Procedures</td>
		<td>Fixtext</td>
		<td>Version</td>
		<td>Mapped Rule</td>
	</thead>
{{% for rule in rules %}}
<tr>
	<td>{{{ rule["V-ID"] }}}</td>
	<td>{{{ rule["CCI"] }}}</td>
	<td>{{{ rule["CAT"] }}}</td>
	<td>{{{ rule["title"] }}}</td>
	<td>{{{ rule["SRG"] }}}</td>
	<td><pre>{{{ rule["description"] }}}</pre></td>
	<td><pre>{{{ rule["check"] }}}</pre></td>
	<td><pre>{{{ rule["fixtext"] }}}</pre></td>
	<td>{{{ rule["version"] }}}</td>
	<td>{{{ rule["mapped_rule"] }}}</td>
</tr>
{{% endfor %}}
</table>
{{% endblock %}}