Fixed branch display.

This commit is contained in:
flash 2019-04-10 23:54:50 +02:00
parent 4c347b18e4
commit dc854bb7d5
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@
''|date('Y') }} / ''|date('Y') }} /
{{ ('https://github.com/flashwave/misuzu/tree/' ~ git_tag)|html_link(git_tag, 'footer__link') }} {{ ('https://github.com/flashwave/misuzu/tree/' ~ git_tag)|html_link(git_tag, 'footer__link') }}
# {{ ('https://github.com/flashwave/misuzu/commit/' ~ git_commit_hash(true))|html_link(git_commit_hash(), 'footer__link') }} # {{ ('https://github.com/flashwave/misuzu/commit/' ~ git_commit_hash(true))|html_link(git_commit_hash(), 'footer__link') }}
{% if git_branch != 'master' %} {% if git_branch != 'HEAD' %}
({{ ('https://github.com/flashwave/misuzu/tree/' ~ git_branch)|html_link(git_branch, 'footer__link') }}) ({{ ('https://github.com/flashwave/misuzu/tree/' ~ git_branch)|html_link(git_branch, 'footer__link') }})
{% endif %} {% endif %}
{% if constant('MSZ_DEBUG') or current_user.user_id|default(0) == 1 %} {% if constant('MSZ_DEBUG') or current_user.user_id|default(0) == 1 %}

View file

@ -44,7 +44,7 @@
''|date('Y') }} / ''|date('Y') }} /
{{ ('https://github.com/flashwave/misuzu/tree/' ~ git_tag)|html_link(git_tag, 'footer__link') }} {{ ('https://github.com/flashwave/misuzu/tree/' ~ git_tag)|html_link(git_tag, 'footer__link') }}
# {{ ('https://github.com/flashwave/misuzu/commit/' ~ git_commit_hash(true))|html_link(git_commit_hash(), 'footer__link') }} # {{ ('https://github.com/flashwave/misuzu/commit/' ~ git_commit_hash(true))|html_link(git_commit_hash(), 'footer__link') }}
{% if git_branch != 'master' %} {% if git_branch != 'HEAD' %}
({{ ('https://github.com/flashwave/misuzu/tree/' ~ git_branch)|html_link(git_branch, 'footer__link') }}) ({{ ('https://github.com/flashwave/misuzu/tree/' ~ git_branch)|html_link(git_branch, 'footer__link') }})
{% endif %} {% endif %}
</div> </div>