forked from CSAGCR/CCSS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
3_checklist.html
70 lines (57 loc) · 2.04 KB
/
3_checklist.html
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
---
layout: default
title: Checklist
permalink: /Checklist/
---
{% assign aspect_count = "0 29 6" | split: ' ' %}
{% assign category_count = 0 %}
{% assign aspects_sorted = '101-KeySeedGeneration|102-WalletCreation|103-KeyStorage|104-KeyUsage|105-KeyCompromiseProtocol|106-KeyholderGrantRevokePoliciesAndProcedures|201-SecurityAuditsAndPentests|202-DataSanitizationPolicy|203-ProofOfReserve|204-AuditLogs' | split: '|' %}
<div class="home">
<ul class="checklist">
<table>
<colgroup>
<col style="width:100px">
<col style="width:150px">
<col style="width:300px">
<col style="width:300px">
<col style="width:300px">
<col style="width:300px">
</colgroup>
<thead>
<tr>
<th id='header_category'>Category</th>
<th id='header_aspect'>Aspect</th>
<th id='header_component'>Component</th>
<th id='header_level_i'><img src="/CCSS/images/CCSS_1_Color_Dark.png" alt="Level I" width="250"/></th>
<th id='header_level_ii'><img src="/CCSS/images/CCSS_2_Color_Dark.png" alt="Level II" width="250"/></th>
<th id='header_level_iii'><img src="/CCSS/images/CCSS_3_Color_Dark.png" alt="Level III" width="250"/></th>
</tr>
</thead>
<tbody>
{% for current_aspect in aspects_sorted %}
{% assign aspect = site.data.aspects[current_aspect] %}
<tr>
{% assign rower = false %}
{% if category != aspect.category %}
{% assign category = aspect.category %}
{% assign category_count = category_count | plus: 1 %}
<td rowspan={{ aspect_count[category_count] }}>{{category}}</td>
{% endif %}
<td rowspan={{ aspect.components.size }}>{{ aspect.title }}</td>
{% for part in aspect.components %}
{% if rower %}
<tr>
{% endif %}
<td>{{ part.title_short }}</td>
<td></td>
<td></td>
<td></td>
</tr>
{% assign rower = true %}
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</ul>
</div>