{% extends 'home/master.twig' %} {% from 'macros.twig' import container_title, avatar %} {% from 'news/macros.twig' import news_preview %} {% from 'changelog/macros.twig' import changelog_listing %} {% set canonical_url = '/' %} {% set landing_stats = [ { icon: 'fas fa-users fa-fw', name: 'Members', value: statistics.count_users_all|number_format, }, { icon: 'fas fa-comment-dots fa-fw', name: 'Comments', value: statistics.count_comments|number_format, }, { icon: 'fas fa-user-check fa-fw', name: 'Online', value: statistics.count_users_online|number_format, }, { icon: 'fas fa-user-clock fa-fw', name: 'Active (24 hr)', value: statistics.count_users_active|number_format, }, { icon: 'fas fa-list fa-fw', name: 'Topics', value: statistics.count_forum_topics|number_format, }, { icon: 'fas fa-comments fa-fw', name: 'Posts', value: statistics.count_forum_posts|number_format, }, ] %} {% block content %}
{{ container_title(' Statistics') }}
{% for stat in landing_stats %}
{{ stat.name }}
{{ stat.value }}
{% endfor %}
{% if online_users|length > 0 %}
{{ container_title(' Currently Online') }}
{% for user in online_users %} {{ avatar(user.user_id, 30, user.username) }} {% endfor %}
{% endif %} {% if birthdays|length > 0 %} {% elseif latest_user is not null %} {% endif %}
{{ container_title(' Changelog', false, url('changelog-index')) }}
{{ changelog_listing(featured_changelog, false, true) }}
{% for post in featured_news %} {{ news_preview(post) }} {% endfor %}
{% endblock %}