pr-tracker/templates/tree.html

30 lines
775 B
HTML
Raw Permalink Normal View History

{# SPDX-License-Identifier: AGPL-3.0-or-later WITH GPL-3.0-linking-exception #}
{#- SPDX-FileCopyrightText: 2021 Alyssa Ross <hi@alyssa.is> -#}
2022-02-02 18:18:08 +01:00
{#- SPDX-FileCopyrightText: 2022 Arnout Engelen <arnout@bzzt.net> -#}
2021-02-14 12:57:45 +01:00
<li>
{% match accepted %}
{%- when Some with (true) -%}
2021-02-14 12:57:45 +01:00
<span class="state-accepted"></span>
{%- when Some with (false) -%}
2022-02-02 18:18:08 +01:00
<span class="state-pending"></span>
{%- when None -%}
2022-02-02 18:18:08 +01:00
<span class="state-unknown"></span>
2021-02-14 12:57:45 +01:00
{% endmatch %}
2022-02-02 18:18:08 +01:00
{% match hydra_link %}
{%- when Some with (link) -%}
<a href="{{ link }}">{{ branch_name }}</a>
{%- when None -%}
{{ branch_name }}
{% endmatch %}
2021-02-14 12:57:45 +01:00
{% if !children.is_empty() %}
<ul>
{% for child in children %}
{{ child|safe }}
{% endfor %}
</ul>
{% endif %}
</li>