{% macro user_card(user) %} {% from 'macros.twig' import avatar %}
{{ avatar(user.user_id, 50, user.username) }}
{{ user.username }}
{% if user.user_title is defined and user.user_title is not empty %}
{{ user.user_title }}
{% endif %} {% if user.user_country|default('XX') != 'XX' %}
{{ user.user_country|country_name }}
{% endif %}
{% if user.user_count_topics|default(0) > 0 %}
Topics
{{ user.user_count_topics|number_format }}
{% endif %} {% if user.user_count_posts|default(0) > 0 %}
Posts
{{ user.user_count_posts|number_format }}
{% endif %} {% if user.user_active is defined and user.user_active is not null %}
Last seen
{% endif %} {% if user.user_created is defined %}
Joined
{% endif %}
{% endmacro %} {% macro user_session(session, is_current_session) %} {% from '_layout/input.twig' import input_hidden, input_csrf, input_checkbox_raw %}
{{ session.country }}
{{ session.clientInfo }}
{{ input_csrf() }} {{ input_hidden('session[]', session.id) }}
Created from IP
{{ session.initialRemoteAddress }}
{% if session.hasLastRemoteAddress %}
Last used from IP
{{ session.lastRemoteAddress }}
{% endif %}
Created
Expires{% if not session.shouldBumpExpire %} (static){% endif %}
{% if session.hasActiveTime %}
Last Active
{% endif %}
User Agent
{{ session.userAgent is empty ? 'None' : session.userAgent }}
{% endmacro %} {% macro user_login_attempt(attempt) %}
{% endmacro %} {% macro user_account_log(data, users) %} {% from 'macros.twig' import avatar %}
{% if data.hasUserId and users[data.userId] is defined %} {% set user = users[data.userId] %} {% endif %}
{% endmacro %}