about summary refs log tree commit diff
path: root/templates/tree.html
blob: 5a851a1a53ba9bf965779acc004739eb29418269 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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>