This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/_sakura/templates/misaki/elements/statsHeader.tpl

33 lines
1.5 KiB
Smarty
Raw Normal View History

<div class="platform frontStats">
<div title="We have {{ stats.userCount }} user{% if stats.userCount != 1 %}s{% endif %}">
2015-10-12 18:25:37 +00:00
<div>
<span class="fa fa-line-chart"></span>
<span>{{ stats.userCount }}</span>
</div>
</div>
<div title="Active in the last 5 minutes: {% for amount,onlineUser in stats.onlineUsers %}{{ onlineUser.username }}{% if amount != (stats.onlineUsers|length - 1) %}, {% endif %}{% endfor %}">
2015-10-12 18:25:37 +00:00
<div>
<span class="fa fa-users"></span>
<span>{{ stats.onlineUsers|length }}</span>
</div>
</div>
<div title="Our newest user is {{ stats.newestUser.username }}">
2015-10-12 18:25:37 +00:00
<div>
<span class="fa fa-user-plus"></span>
<span><a href="/u/{{ stats.newestUser.id }}" style="color: {{ stats.newestUser.colour }}">{{ stats.newestUser.username }}</a></span>
2015-10-12 18:25:37 +00:00
</div>
</div>
<div title="It has been {{ stats.lastRegDate }} since the last user registered">
2015-10-12 18:25:37 +00:00
<div>
<span class="fa fa-clock-o"></span>
<span>{{ stats.lastRegDate }}</span>
</div>
</div>
<div title="The forum has {{ stats.topicCount }} thread{% if stats.topicCount != 1 %}s{% endif %} consisting out of {{ stats.postCount }} post{% if stats.postCount != 1 %}s{% endif %}">
2015-10-12 18:25:37 +00:00
<div>
<span class="fa fa-list"></span>
<span>{{ stats.topicCount }}<span style="font-size: .5em; line-height: 1em">/ {{ stats.postCount }}</span></span>
</div>
</div>
</div>