misuzu/templates/_layout/footer.twig

28 lines
1.9 KiB
Twig
Raw Normal View History

2022-09-13 13:14:49 +00:00
<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>
2022-09-13 13:14:49 +00:00
2013-{{ ''|date('Y') }} /
{% set git_branch = git_branch() %}
{% if git_branch != 'HEAD' %}
2022-09-13 14:08:45 +00:00
<a href="https://git.flash.moe/flashii/misuzu/src/branch/{{ git_branch }}" target="_blank" rel="noreferrer noopener" class="footer__link">{{ git_branch }}</a>
2022-09-13 13:14:49 +00:00
{% else %}
{% set git_tag = git_tag() %}
2022-09-13 14:08:45 +00:00
<a href="https://git.flash.moe/flashii/misuzu/src/tag/{{ git_tag }}" target="_blank" rel="noreferrer noopener" class="footer__link">{{ git_tag }}</a>
2022-09-13 13:14:49 +00:00
{% endif %}
2022-09-13 14:08:45 +00:00
# <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_debug_info %}
{% set sql_query_count = sql_query_count() %}
2022-09-13 13:14:49 +00:00
/ Index {{ ndx_version() }}
/ SQL Queries: {{ sql_query_count.total|number_format }} (<span title="{{ sql_query_count.ndx|number_format }} queries processed through Index">{{ sql_query_count.ndx|number_format }}</span> + <span title="{{ sql_query_count.pdo|number_format }} queries processed through PDO">{{ sql_query_count.pdo|number_format }}</span>)
2022-09-13 13:14:49 +00:00
/ Took: {{ startup_time()|number_format(5) }} seconds
/ Load: {{ (startup_time() - startup_time(constant('MSZ_TPL_RENDER')))|number_format(5) }} seconds
/ Render: {{ startup_time(constant('MSZ_TPL_RENDER'))|number_format(5) }} seconds
{% endif %}
</div>
{% endautoescape %}
</div>
</footer>