diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-02-17 17:58:18 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-02-17 18:42:31 +0000 |
commit | ba72f1c845a8430b289fb8ac94f039c7c1a205c4 (patch) | |
tree | c3c163732265db9960d0f4b724647ef52cf387aa /templates/tree.html | |
parent | 6f9ccf054b8af59243e50b24d2c8b36e22ab3ac4 (diff) | |
download | pr-tracker-ba72f1c845a8430b289fb8ac94f039c7c1a205c4.tar pr-tracker-ba72f1c845a8430b289fb8ac94f039c7c1a205c4.tar.gz pr-tracker-ba72f1c845a8430b289fb8ac94f039c7c1a205c4.tar.bz2 pr-tracker-ba72f1c845a8430b289fb8ac94f039c7c1a205c4.tar.lz pr-tracker-ba72f1c845a8430b289fb8ac94f039c7c1a205c4.tar.xz pr-tracker-ba72f1c845a8430b289fb8ac94f039c7c1a205c4.tar.zst pr-tracker-ba72f1c845a8430b289fb8ac94f039c7c1a205c4.zip |
templates: clean up HTML output
The main issue was that the license header from the tree template was being repeated in the generated HTML every time it was included. Use an askama comment to avoid that. Additionally, reduce the amount of unnecessary whitespace generated a bit.
Diffstat (limited to 'templates/tree.html')
-rw-r--r-- | templates/tree.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/tree.html b/templates/tree.html index 5a851a1..caa9c3e 100644 --- a/templates/tree.html +++ b/templates/tree.html @@ -1,13 +1,13 @@ -<!-- SPDX-License-Identifier: AGPL-3.0-or-later WITH GPL-3.0-linking-exception --> -<!-- SPDX-FileCopyrightText: 2021 Alyssa Ross <hi@alyssa.is> --> +{# SPDX-License-Identifier: AGPL-3.0-or-later WITH GPL-3.0-linking-exception #} +{#- SPDX-FileCopyrightText: 2021 Alyssa Ross <hi@alyssa.is> -#} <li> {% match accepted %} - {% when Some with (true) %} + {%- when Some with (true) -%} <span class="state-accepted">✅</span> - {% when Some with (false) %} + {%- when Some with (false) -%} <span class="state-pending">⚪</span> - {% when None %} + {%- when None -%} <span class="state-unknown">❓</span> {% endmatch %} |