File: component-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 (69 lines) | stat: -rw-r--r-- 1,331 bytes parent folder | download
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
59
60
61
62
63
64
65
66
67
68
69
{{% extends "html-template.html" %}}

{{% block body %}}
{{{ super() }}}

{{% set component = component_data.component %}}
{{% set rules = component_data.rules %}}

<h2>Component overview</h2>

<h3>Relevant packages:</h3>
{{% if component.packages %}}
<ul>
{{% for package in component.packages %}}
<li>{{{ package }}}</li>
{{% endfor %}}
</ul>
{{% else %}}
<div>None</div>
{{% endif %}}

<h3>Relevant groups:</h3>
{{% if component.groups %}}
<ul>
{{% for group in component.groups %}}
<li>{{{ group }}}</li>
{{% endfor %}}
</ul>
{{% else %}}
<div>None</div>
{{% endif %}}

<h3>Changelog:</h3>
{{% if component.changelog %}}
<ul>
{{% for entry in component.changelog %}}
<li>{{{ entry }}}</li>
{{% endfor %}}
</ul>
{{% else %}}
<div>No changes recorded.</div>
{{% endif %}}

<h3>Relevant rules:</h3>
{{% if rules %}}
<ul>
{{% for rule in rules %}}
<li><a href="#{{{ rule.id }}}">{{{ rule.id }}}</a></li>
{{% endfor %}}
</ul>
{{% else %}}
<div>None</div>
{{% endif %}}


<h2>Rule details</h2>

{{% for rule in rules %}}
<div id="{{{ rule.id }}}" class="rule" style="border-bottom: 2px solid; margin-bottom: 1cm; padding-bottom: 1cm;">
<h3>{{{ rule.title }}}</h3>
<div>{{{ rule.id }}}</div>
<h4>Description</h4>
<p>{{{ rule.description }}}</p>
<h4>Rationale</h4>
<p>{{{ rule.rationale }}}</p>
</div>
{{% endfor %}}

{{% endblock %}}