{% 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.countryCode }}
{{ session.clientInfo }}
{{ input_csrf() }} {{ input_hidden('session', session.id) }}
Created from IP
{{ session.firstRemoteAddress }}
{% if session.hasLastRemoteAddress %}
Last used from IP
{{ session.lastRemoteAddress }}
{% endif %}
Created
Expires{% if not session.shouldBumpExpires %} (static){% endif %}
{% if session.hasLastActive %}
Last Active
{% endif %}
User Agent
{{ session.userAgentString }}
{% 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 %}