{% macro information(current_user, active_semester_str, role) %}
    User:
    <a
        href="{{ url_for('main.index') }}{{ role }}/user/edit/?id={{ current_user.id }}"
    >{{ current_user }}</a>
    | Active semester: {{ active_semester_str() }}
    {% if (role == "admin") and (current_user.has_role("assistant")) %}
        |
        <a
            href="{{ url_for('main.index') }}assistant"
        >Assistant space</a>.
    {% elif (role == "assistant") and (current_user.has_role("admin")) %}
        |
        <a
            href="{{ url_for('main.index') }}admin"
        >Admin space</a>.
    {% endif %}
{% endmacro %}