misuzu/templates/manage/general/overview.twig

27 lines
1.1 KiB
Twig
Raw Normal View History

2022-09-13 13:14:49 +00:00
{% extends 'manage/general/master.twig' %}
{% from 'macros.twig' import container_title %}
{% block manage_content %}
<div class="container container--lazy">
{{ container_title('Overview') }}
<div class="container__content">
<p>Welcome to Manage, here you can manage things.</p>
</div>
</div>
<div class="container container--lazy">
{{ container_title('Statistics') }}
<div class="manage__statistics">
{% for counter in counter_infos %}
<div class="manage__statistic">
<div class="manage__statistic__name">{{ counter_names[counter.name]|default(counter.name) }}</div>
<div class="manage__statistic__value">{{ counter.value|number_format }}</div>
<div class="manage__statistic__updated">as of <time datetime="{{ counter.updatedTime|date('c') }}" title="{{ counter.updatedTime|date('r') }}">{{ counter.updatedTime|time_format }}</time></div>
2022-09-13 13:14:49 +00:00
</div>
{% endfor %}
</div>
</div>
{% endblock %}