File: srg_diff.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 (77 lines) | stat: -rw-r--r-- 1,925 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8"/>
  <title>{{ title }}</title>
<style type="text/css">
    /* From difflib.HtmlDiff().make_file() */
    table.diff {font-family:Courier; border:medium;}
    .diff_header {background-color:#e0e0e0}
    td.diff_header {text-align:right}
    .diff_next {background-color:#c0c0c0}
    .diff_add {background-color:#aaffaa}
    .diff_chg {background-color:#ffff77}
    .diff_sub {background-color:#ffaaaa}
</style>
</head>
<body>
<h1>{{ title }}</h1>
<h2>Missing in Base</h2>
<ul>
    {% for rule in missing_in_base %}
        <li>{{ rule }}</li>
    {% endfor %}
</ul>
<h2>Missing in Target</h2>
<ul>
    {% for rule in missing_in_target %}
        <li>{{ rule }}</li>
    {% endfor %}
</ul>
{% if base_missing_cces %}
<h2>Rows Missing STIG IDs in Base</h2>
<ul>
    {% for requirement in base_missing_stig_ids %}
        <li>{{ requirement }}</li>
    {% endfor %}
</ul>
{% endif %}

{% if target_missing_cces %}
<h2>Rows Missing STIG IDs in Target</h2>
<ul>
    {% for requirement in target_missing_stig_ids %}
        <li>{{ requirement }}</li>
    {% endfor %}
</ul>
{% endif %}

<h2>Deltas</h2>
{% for delta in deltas %}
    {% if delta.should_display() %}
        <h3>{{ delta.cci }} - {{ delta.rule_id }}</h3>
        {% if delta.Requirement != "" %}
            <h4>Requirement</h4>
            {{ delta.Requirement }}
        {% endif %}

        {% if delta.Vul_Discussion != "" %}
            <h4>Vul_Discussion</h4>
            {{ delta.Vul_Discussion }}
        {% endif %}
        {% if delta.Status != "" %}
            <h4>Status</h4>
            {{ delta.Status }}
        {% endif %}
        {% if delta.Check != "" %}
            <h4>Check</h4>
            {{ delta.Check }}
        {% endif %}
        {% if delta.Fix != "" %}
            <h4>Fix</h4>
            {{ delta.Fix }}
        {% endif %}
    {% endif %}
{% endfor %}
</body>
</html>