{% extends 'master.twig' %} {% from 'macros.twig' import news_post %} {% block content %}
{% if user.isActive %}

{{ user.username }}

{% set friendRequests = user.friends(-1, true)|length %} {% if friendRequests %} {{ friendRequests }} new friend requests {% endif %}
{% endif %}
Stats
We have {{ userCount }} user{% if userCount != 1 %}s{% endif %}, {{ newestUser.username }} is the newest user, it has been {{ lastRegDate }} day{{ lastRegDate == 1 ? '' : 's' }} since the last user registered and the forum has {{ topicCount }} topic{% if topicCount != 1 %}s{% endif %} and {{ postCount }} post{% if postCount != 1 %}s{% endif %}.
Online Users
{% if onlineUsers %} All active users in the past 2 minutes {% for amount, onlineUser in onlineUsers %} {% endfor %}
{{ onlineUser.username }}
{% else %} There were no online users in the past 2 minutes. {% endif %}
News
{% for post in news %} {{ news_post(post, true, true, true) }} {% endfor %}
{% endblock %}