Refer to tag name rather than branch name in the footer.

This commit is contained in:
flash 2018-10-03 09:54:43 +02:00
parent 22a7f46959
commit 0f79e2015c
2 changed files with 2 additions and 1 deletions

View file

@ -266,6 +266,7 @@ MIG;
tpl_add_function('git_commit_hash'); tpl_add_function('git_commit_hash');
tpl_add_function('git_branch'); tpl_add_function('git_branch');
tpl_add_function('git_tag');
tpl_add_function('csrf_token'); tpl_add_function('csrf_token');
tpl_add_function('startup_time', false, function (float $time = MSZ_STARTUP) { tpl_add_function('startup_time', false, function (float $time = MSZ_STARTUP) {
return microtime(true) - $time; return microtime(true) - $time;

View file

@ -33,7 +33,7 @@
<div class="footer__copyright"> <div class="footer__copyright">
{{ 'https://flash.moe'|html_link('Flashwave', 'footer__link') }} 2013-{{ {{ 'https://flash.moe'|html_link('Flashwave', 'footer__link') }} 2013-{{
''|date('Y') }} / ''|date('Y') }} /
{{ ('https://github.com/flashwave/misuzu/tree/' ~ git_branch())|html_link(git_branch(), '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 constant('MSZ_DEBUG') or current_user.user_id|default(0) == 1 %} {% if constant('MSZ_DEBUG') or current_user.user_id|default(0) == 1 %}
/ SQL Queries: {{ sql_query_count()|number_format }} / SQL Queries: {{ sql_query_count()|number_format }}