Add typed commit links
This commit is contained in:
parent
0253d2d90b
commit
c3c597897c
10 changed files with 82 additions and 69 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{% macro r_class(reachable) %}
|
||||
{% macro commit_class(reachable) %}
|
||||
{%- if reachable == 0 -%}
|
||||
orphaned
|
||||
{%- else if reachable == 1 -%}
|
||||
|
|
@ -8,7 +8,7 @@ tracked
|
|||
{%- endif -%}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro r_title(reachable) %}
|
||||
{% macro commit_title(reachable) %}
|
||||
{%- if reachable == 0 -%}
|
||||
This commit is orphaned. It can't be reached from any ref.
|
||||
{%- else if reachable == 1 -%}
|
||||
|
|
@ -17,7 +17,3 @@ This commit can only be reached from untracked refs.
|
|||
This commit can be reached from a tracked ref.
|
||||
{%- endif -%}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro commit_short(short, reachable) -%}
|
||||
<span class="{% call r_class(reachable) %}" title="{% call r_title(reachable) %}">{{ short }}</span>
|
||||
{%- endmacro %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue