From a1f0e5451ec0bbcac31bf88a2e50ad628325ba1c Mon Sep 17 00:00:00 2001 From: adpare Date: Mon, 2 Oct 2023 13:58:23 -0400 Subject: [PATCH] code cleanup --- .gitignore | 1 + .../templates/general/sidebar-technique.html | 21 --- modules/resources/templates/attackcon.html | 135 ------------------ modules/website_build/templates/faq.html | 52 ------- 4 files changed, 1 insertion(+), 208 deletions(-) delete mode 100644 attack-theme/templates/general/sidebar-technique.html delete mode 100644 modules/resources/templates/attackcon.html delete mode 100644 modules/website_build/templates/faq.html diff --git a/.gitignore b/.gitignore index a57b1721080..e91dd82628a 100644 --- a/.gitignore +++ b/.gitignore @@ -28,6 +28,7 @@ attack-theme/templates/techniques attack-theme/templates/website_build attack-theme/templates/versions attack-theme/static/scripts/settings.js +attack-theme/templates/general/sidebar-resources.html content/ data/pelican_settings.json diff --git a/attack-theme/templates/general/sidebar-technique.html b/attack-theme/templates/general/sidebar-technique.html deleted file mode 100644 index f6dc5d3346b..00000000000 --- a/attack-theme/templates/general/sidebar-technique.html +++ /dev/null @@ -1,21 +0,0 @@ -{% import 'macros/navigation.html' as navigation %} -{% set parsed = page.data | from_json %} - - -
- {{ navigation.sidenav(parsed.menu, output_file) }} -
- - -{% block scripts %} - - - - - - - - - - -{% endblock %} \ No newline at end of file diff --git a/modules/resources/templates/attackcon.html b/modules/resources/templates/attackcon.html deleted file mode 100644 index adddec40bdd..00000000000 --- a/modules/resources/templates/attackcon.html +++ /dev/null @@ -1,135 +0,0 @@ -{% extends "general/two-column.html" %} -{% set active_page = "attackcon" -%} -{% set title = "MITRE ATT&CKcon | MITRE ATT&CK®" -%} -{% set conventions = page.data | from_json %} -{% import 'macros/navigation.html' as navigation %} - -{% block innerleft %} - -{% endblock %} - -{% block innerright %} - -
- -
- -
- -
- {% for con in conventions %} - {% set conID = "-".join(con.date.split(' ')) %} - {% set active = conID == 'March-2022' %} -
- - {% if "banner_img" in con %} -

- -

- {% endif %} - - {% if "description" in con %} -

{{con.description}}

- {% endif %} - {% if "blogpost" in con %} -

Click here to read our blog post about {{con.title}}! External site

- {% endif %} - -
-

Presentations

- {% for presentation in con.presentations %} - {% set isPanel = "moderator" in presentation %} -
- -
-
- {% if not isPanel %} -

{{presentation.description}}

- {% else %} -

Panelists:

-
    - {% for panelist in presentation.panelists %} -
  • - {{panelist}} -
  • - {% endfor %} -
-

{{presentation.moderator.name}} moderates a panel that discusses:

-
    - {% for topic in presentation.topics %} -
  • - {{topic}} -
  • - {% endfor %} -
- {% endif %} - - {% if "video" in presentation %} - video External site - {% else %} - (no video) - {% endif %} - - {% if "slides" in presentation %} - slides External site - {% else %} - (no slides) - {% endif %} -
-
-
- - {% endfor %} -
- {% if "sponsors_img" in con %} -
-

Sponsors

- -
- {% elif "sponsors_img_list" in con %} -
-

Sponsors

-
- {% for sponsor_img in con.sponsors_img_list %} -
- -
- {% endfor %} -
-
- {% endif %} -
- {% endfor %} -
-
- -{% endblock %} - - -{% block scripts %} -{{ super() }} - - -{% endblock %} \ No newline at end of file diff --git a/modules/website_build/templates/faq.html b/modules/website_build/templates/faq.html deleted file mode 100644 index b6baf2c7bb5..00000000000 --- a/modules/website_build/templates/faq.html +++ /dev/null @@ -1,52 +0,0 @@ -{% extends "general/two-column.html" %} -{% set active_page = "resources" -%} -{% set title = "FAQ | MITRE ATT&CK®" -%} -{% set parsed = page.data | from_json %} -{% import 'macros/navigation.html' as navigation %} - -{% block innerleft %} -
- {{navigation.sidenav(RESOURCE_NAV, output_file)}} -
-{% endblock %} - -{% block innerright %} - -
- -
-
-

Frequently Asked Questions

-
- {% for section in parsed.sections %} -
-

{{section.name}}

-
- {% for qa in section.questions %} -
- -
-
- {{qa.answer}} -
-
-
- {% endfor %} -
-
- {% endfor %} -
-
-{% endblock %} - -{% block scripts %} -{{ super() }} - - -{% endblock %} \ No newline at end of file