{% macro user_card(user) %} {% from 'macros.twig' import avatar %}
{{ avatar(user.info.id, 50, user.info.name) }}
{{ user.info.name }}
{% if user.info.hasTitle %}
{{ user.info.title }}
{% endif %} {% if user.info.hasCountryCode %}
{{ user.info.countryCode|country_name }}
{% endif %}
{% if user.ftopics > 0 %}
Topics
{{ user.ftopics|number_format }}
{% endif %} {% if user.fposts > 0 %}
Posts
{{ user.fposts|number_format }}
{% endif %} {% if user.info.hasLastActive %}
Last seen
{% endif %}
Joined
{% 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, colours) %} {% from 'macros.twig' import avatar %}
{% if data.hasUserId and users[data.userId] is defined %} {% set user = users[data.userId] %} {% set colour = colours[data.userId]|default(null) %} {% endif %}
{% endmacro %}