tablejohn/templates/util.html
2023-08-17 22:36:31 +02:00

19 lines
478 B
HTML

{% macro commit_class(reachable) %}
{%- if reachable == 0 -%}
commit-orphaned
{%- else if reachable == 1 -%}
commit-reachable
{%- else -%}
commit-tracked
{%- endif -%}
{% endmacro %}
{% macro commit_title(reachable) %}
{%- if reachable == 0 -%}
This commit is orphaned. It can't be reached from any ref.
{%- else if reachable == 1 -%}
This commit can only be reached from untracked refs.
{%- else -%}
This commit can be reached from a tracked ref.
{%- endif -%}
{% endmacro %}