You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: attack-theme/templates/matrices/matrix.html
+41-21
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
{% set parsed = page.data | from_json %}
3
3
{% import 'macros/navigation.html' as navigation %}
4
4
{% import 'macros/matrix.html' as matrix_macros %}
5
+
{% import 'macros/versioning.html' as versioning %}
5
6
6
7
{% if parsed.domain == "pre" %}
7
8
{% set title = "Matrix - PRE-ATT&CK | MITRE ATT&CK®" -%}
@@ -37,33 +38,52 @@
37
38
{% endif %}
38
39
</ol>
39
40
</div>
40
-
<!-- only show navigator link if it's defined in the config -->
41
-
{% if (parsed.navigator_link_enterprise and parsed.domain == 'enterprise') or (parsed.navigator_link_mobile and parsed.domain == 'mobile') %}
42
-
<divclass="col">
43
-
<spanclass="h3 mt-3 float-right">
44
-
<ahref="{{ parsed.navigator_link_mobile if parsed.domain == 'mobile' else parsed.navigator_link_enterprise }}" class="btn btn-navy" target="_blank">Launch the ATT&CK<sup>®</sup> Navigator <imgsrc="/theme/images/external-link.svg" width="10"></a>
45
-
</span>
46
-
</div>
47
-
{% endif %}
48
41
</div>
49
42
<divclass="tab-pane fade show active" id="v-attckmatrix" role="tabpanel" aria-labelledby="v-attckmatrix-tab">
50
-
<divclass="container-fluid">
51
-
{% set matrix_plural = "Matrices" if (parsed.matrices | length > 1) else "Matrix" %}
52
43
53
-
<h1>{{parsed.name}} {{matrix_plural}}</h1>
44
+
<divclass="matrix-container p-3">
45
+
{% set matrix_plural = "Matrices" if (parsed.matrices | length > 1) else "Matrix" %}
46
+
<divclass="row">
47
+
<divclass="col-md-9">
48
+
<h1>{{parsed.name}} {{matrix_plural}}</h1>
54
49
55
-
<p>
56
-
{{parsed.descr}}
57
-
{% if parsed.platforms | length > 1 %}
58
-
The {{matrix_plural}} contains information for the following platforms: {% for platform in parsed.platforms %}{%if loop.index != 1 %}, {% endif %}<ahref="/matrices/{{platform.path}}">{{platform.name}}</a>{% endfor %}.
59
-
{% elif parsed.platforms | length == 1 %}
60
-
The {{matrix_plural}} contains information for the {{parsed.platforms[0].name}} platform.
The {{matrix_plural}} contains information for the following platforms: {% for platform in parsed.platforms %}{%if loop.index != 1 %}, {% endif %}<ahref="/matrices/{{platform.path}}">{{platform.name}}</a>{% endfor %}.
54
+
{% elif parsed.platforms | length == 1 %}
55
+
The {{matrix_plural}} contains information for the {{parsed.platforms[0].name}} platform.
56
+
{% endif %}
57
+
</p>
58
+
</div>
59
+
<divclass="matrix-border col-md-3">
60
+
<divclass="col py-2">
61
+
<!-- only show navigator link if it's defined in the config -->
62
+
{% if (parsed.navigator_link_enterprise and parsed.domain == 'enterprise') or (parsed.navigator_link_mobile and parsed.domain == 'mobile') %}
63
+
<divclass="row p-2">
64
+
<ahref="{{ parsed.navigator_link_mobile if parsed.domain == 'mobile' else parsed.navigator_link_enterprise }}" target="_blank">View on the ATT&CK<sup>®</sup> Navigator <imgsrc="/theme/images/external-site-dark.jpeg" width="10"></a>
65
+
</div>
66
+
{% endif %}
67
+
<divclass="row p-2">
68
+
{% if parsed.domain == "pre" %}
69
+
<ahref="/resources/pre-introduction/">About the PRE-ATT&CK domain</a>
70
+
{% elif parsed.domain == "enterprise" %}
71
+
<ahref="/resources/enterprise-introduction/">About the Enterprise domain</a>
72
+
{% elif parsed.domain == "mobile" %}
73
+
<ahref="/resources/mobile-introduction/">About the Mobile domain</a>
74
+
{% endif %}
75
+
</div>
76
+
<divclass="row p-2">
77
+
{% set permalink_title = "the matrices" if parsed.matrices | length > 1 else "the matrix" %}
0 commit comments