{% extends "layouts/base.html" %} {% block title %}{{ profile_user.username }} - UdeS team manager{% endblock %} {% block page_title %}{{ profile_user.username }}{% endblock %} {% block breadcrumb %}Home / Back / {{ profile_user.username }}{% endblock %} {% block content %}
{{ profile_user.username[:2] | upper }}

{{ profile_user.username }}

{{ profile_user.role | capitalize }}
Username {{ profile_user.username }}
Role {{ profile_user.role | capitalize }}
{% if profile_user.discord_username %}
Discord {{ profile_user.discord_username }}
{% endif %} {% if profile_user.league_os_profile %} {% endif %}
{% set gamertags = profile_user.gamertags %} {% if gamertags %}

{{ _('Gamertags') }}

{% for gt in gamertags %} {% endfor %}
{{ _('Game') }} {{ _('Gamertag') }} {{ _('Platform') }} {{ _('Profile') }}
{{ gt.game }} {{ gt.gamertag }} {{ gt.platform or '-' }} {% if gt.get_trn_url() %} {{ _('View Profile') }} {% else %} — {% endif %}
{% endif %} {% if profile_user.role in ('player', 'coach') and availability %}

{{ _('Availability') }} ({{ '%.1f'|format(availability_hours or 0.0) }} h)

{% set day_names = ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'] %} {% for day_idx in range(7) %}
{{ day_names[day_idx][:3] }}
{% set day_slots = availability | selectattr('day_of_week', 'equalto', day_idx) | list %} {% if day_slots %} {% for slot in day_slots | sort(attribute='start_time') %}
{{ slot.start_time.strftime('%H:%M') }}–{{ slot.end_time.strftime('%H:%M') }}
{% endfor %} {% else %}
—
{% endif %}
{% endfor %}
{% endif %}
{% endblock %}