diff --git a/templates/_layout/footer.twig b/templates/_layout/footer.twig index 325454b8..235e33cb 100644 --- a/templates/_layout/footer.twig +++ b/templates/_layout/footer.twig @@ -9,7 +9,7 @@ ''|date('Y') }} / {{ ('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') }} - {% if git_branch != 'master' %} + {% if git_branch != 'HEAD' %} ({{ ('https://github.com/flashwave/misuzu/tree/' ~ git_branch)|html_link(git_branch, 'footer__link') }}) {% endif %} {% if constant('MSZ_DEBUG') or current_user.user_id|default(0) == 1 %} diff --git a/templates/master_minimal.twig b/templates/master_minimal.twig index 6c006028..7e87301c 100644 --- a/templates/master_minimal.twig +++ b/templates/master_minimal.twig @@ -44,7 +44,7 @@ ''|date('Y') }} / {{ ('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') }} - {% if git_branch != 'master' %} + {% if git_branch != 'HEAD' %} ({{ ('https://github.com/flashwave/misuzu/tree/' ~ git_branch)|html_link(git_branch, 'footer__link') }}) {% endif %}