{% 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 %}
{% 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.user_agent) %}
{{ browser.browser }} on {{ browser.platform }}
{{ input_csrf('settings') }} {{ input_hidden('session[]', session.session_id) }}
IP Address
{{ session.session_ip_decoded }}
Created
Expires
User Agent
{{ session.user_agent|length > 0 ? session.user_agent : 'None' }}
{% endmacro %}