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/main/index.tpl
flashwave 2a642ce381 r20151107
Signed-off-by: Flashwave <me@flash.moe>
2015-11-07 23:58:02 +01:00

22 lines
827 B
Smarty
Executable file

{% extends 'global/master.tpl' %}
{% block content %}
<div class="homepage">
{% include 'elements/statsHeader.tpl' %}
<div class="onlineUsers platform">
{% if stats.onlineUsers %}
{% for amount,onlineUser in stats.onlineUsers %}
<a href="{{ urls.format('USER_PROFILE', [onlineUser.id]) }}" style="background-color: {{ onlineUser.colour }};">{{ onlineUser.username }}</a>
{% endfor %}
{% else %}
<div>There were no online users in the past 5 minutes.</div>
{% endif %}
</div>
<div class="frontNews platform">
{% for post in news.getPosts(0, newsCount) %}
{% include 'elements/newsPost.tpl' %}
{% endfor %}
</div>
</div>
{% endblock %}