<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 constant('MSZ_DEBUG') or current_user.super|default(false) %}
                {% set sql_query_count = sql_query_count() %}
                / 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>)
                / 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>
