about summary refs log tree commit diff
path: root/templates/tree.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/tree.html')
-rw-r--r--templates/tree.html23
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/tree.html b/templates/tree.html
new file mode 100644
index 0000000..5a851a1
--- /dev/null
+++ b/templates/tree.html
@@ -0,0 +1,23 @@
+<!-- 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) %}
+  <span class="state-accepted">✅</span>
+  {% when Some with (false) %}
+  <span class="state-pending">⚪</span>
+  {% when None %}
+  <span class="state-unknown">❓</span>
+  {% endmatch %}
+
+  {{ branch_name }}
+
+  {% if !children.is_empty() %}
+  <ul>
+    {% for child in children %}
+    {{ child|safe }}
+    {% endfor %}
+  </ul>
+  {% endif %}
+</li>