about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--templates/page.html26
-rw-r--r--templates/tree.html10
2 files changed, 18 insertions, 18 deletions
diff --git a/templates/page.html b/templates/page.html
index 715814a..d433e41 100644
--- a/templates/page.html
+++ b/templates/page.html
@@ -5,9 +5,9 @@
 <html lang="en">
   <head>
     {% match pr_number %}
-    {% when Some with (pr_number) %}
+    {%- when Some with (pr_number) -%}
     <title>Nixpkgs PR #{{ pr_number }} progress</title>
-    {% else %}
+    {%- else -%}
     <title>Nixpkgs PR progress tracker</title>
     {% endmatch %}
 
@@ -169,29 +169,29 @@
     {% endmatch %}
 
     {% match pr_number %}
-    {% when Some with (pr_number) %}
+    {%- when Some with (pr_number) -%}
     <main>
       <ol>
         <li>
-          {% if closed %}
+          {%- if closed -%}
           <span class="state-rejected">❌</span>
-          {% else %}
+          {%- else -%}
           <span class="state-accepted">✅</span>
-          {% endif %}
+          {%- endif -%}
           PR <a href="https://github.com/NixOS/nixpkgs/pull/{{ pr_number }}">#{{ pr_number }}</a>
-          {% if closed %}
+          {%- if closed -%}
           closed
-          {% endif %}
+          {%- endif -%}
         </li>
 
         {% match tree %}
-        {% when Some with (tree) %}
-        {{ tree|safe }}
-        {% else %}
-        {% endmatch %}
+        {%- when Some with (tree) -%}
+        {{- tree|safe -}}
+        {%- else -%}
+        {%- endmatch -%}
       </ol>
     </main>
-    {% else %}
+    {%- else -%}
     {% endmatch %}
     
     <footer>
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 %}