{% macro user_card(user, profile_url, rank_url, actions) %}
{{ user.username }}
{% if user.user_country is defined %}
{{ user.user_country }}
{% endif %} {% if user.user_title is defined %} {{ user.user_title }} {% endif %}
{% if actions is iterable and actions|length > 0 %}
{% for action in actions %} {{ action.text }} {% endfor %}
{% endif %}
{% endmacro %} {% macro user_session(session, is_current_session) %} {% from '_layout/input.twig' import input_hidden, input_csrf, input_checkbox_raw %} {% set browser = get_browser(session.session_user_agent) %}
{{ session.session_country }}
{{ browser.browser }} on {{ browser.platform }}
{{ input_csrf('settings') }} {{ input_hidden('session[]', session.session_id) }}
IP Address
{{ session.session_ip }}
Created
Expires
{% if session.session_active is not null %}
Last Active
{% endif %}
User Agent
{{ session.session_user_agent|length > 0 ? session.session_user_agent : 'None' }}
{% endmacro %} {% macro user_login_attempt(attempt) %} {% set browser = get_browser(attempt.attempt_user_agent) %}
{% endmacro %} {% macro user_account_log(data, strings) %}
{% if data.user_id is defined %} {% endif %}
{% endmacro %}