misuzu/templates/_layout/footer.twig

26 lines
1.5 KiB
Twig

<footer class="footer">
<div class="footer__background"></div>
<div class="footer__wrapper">
{% autoescape false %}
<div class="footer__copyright">
<a href="https://flash.moe" target="_blank" rel="noreferrer noopener" class="footer__link">flashwave</a>
2013-{{ ''|date('Y') }} /
{% set git_branch = git_branch() %}
{% if git_branch != 'HEAD' %}
<a href="https://git.flash.moe/flashii/misuzu/src/branch/{{ git_branch }}" target="_blank" rel="noreferrer noopener" class="footer__link">{{ git_branch }}</a>
{% else %}
{% set git_tag = git_tag() %}
<a href="https://git.flash.moe/flashii/misuzu/src/tag/{{ git_tag }}" target="_blank" rel="noreferrer noopener" class="footer__link">{{ git_tag }}</a>
{% endif %}
# <a href="https://git.flash.moe/flashii/misuzu/commit/{{ git_commit_hash(true) }}" target="_blank" rel="noreferrer noopener" class="footer__link">{{ git_commit_hash() }}</a>
{% if display_timings_info %}
/ Index {{ ndx_version() }}
/ {{ sql_query_count()|number_format }} queries
/ {{ (startup_time() - startup_time(constant('MSZ_TPL_RENDER')))|number_format(5) }} load
/ {{ startup_time(constant('MSZ_TPL_RENDER'))|number_format(5) }} template
/ {{ startup_time()|number_format(5) }} total
{% endif %}
</div>
{% endautoescape %}
</div>
</footer>