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/templates/misaki/main/index.twig

22 lines
830 B
Twig
Raw Normal View History

2016-01-04 20:14:09 +00:00
{% extends 'global/master.twig' %}
{% block content %}
<div class="homepage">
2016-01-04 20:14:09 +00:00
{% include 'elements/statsHeader.twig' %}
<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) %}
2016-01-04 20:14:09 +00:00
{% include 'elements/newsPost.twig' %}
{% endfor %}
</div>
2015-07-04 19:53:15 +00:00
</div>
{% endblock %}