{% 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['users:active']|number_format, }, { icon: 'fas fa-comment-dots fa-fw', name: 'Comments', value: statistics['comments:posts:visible']|number_format, }, { icon: 'fas fa-user-check fa-fw', name: 'Online', value: statistics['users:online:recent']|number_format, }, { icon: 'fas fa-user-clock fa-fw', name: 'Active (24 hr)', value: statistics['users:online:today']|number_format, }, { icon: 'fas fa-list fa-fw', name: 'Topics', value: statistics['forum:topics:visible']|number_format, }, { icon: 'fas fa-comments fa-fw', name: 'Posts', value: statistics['forum:posts:visible']|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.id, 30, user.name) }} {% endfor %}
{% endif %} {% if birthdays|length > 0 %}
{{ container_title(' Happy Birthday!') }} {% for birthday in birthdays %} {% set age = birthday.info.age %}
{{ avatar(birthday.info.id, 50, birthday.info.name) }}
{{ birthday.info.name }}
{% if age > 0 %}
Turned {{ age }} today!
{% endif %}
{% endfor %}
{% elseif newest_member is not empty %} {% endif %}
{{ container_title(' Changelog', false, url('changelog-index')) }}
{{ changelog_listing(featured_changelog, false, true) }}
{% for post in featured_news %} {{ news_preview(post) }} {% endfor %}
{% endblock %}