{% if current_user.is_authenticated %}
TryoutPro
{{ current_user.username[:2] | upper }}
{{ current_user.username }}
{{ current_user.role | capitalize }}
{{ _('Dashboard') }}
{{ _('Tryouts') }}
{{ _('Calendar') }}
{% if current_user.can_evaluate() %}
{{ _('Evaluations') }}
{% endif %} {% if current_user.role == 'player' %}
{{ _('My Team(s)') }}
{% else %}
{{ _('Manage Teams') }}
{% endif %} {% if current_user.can_manage_users() %}
{{ _('Manage Users') }}
{% endif %} {% if current_user.role == 'player' %}
{{ _('My Notes') }}
{% endif %} {% if current_user.role == 'coach' %}
{{ _('Availability') }}
{{ _('Notes & One on One') }}
{% endif %}
{{ _('Contracts') }}
{{ _('My Profile') }}
{# A form, not a link: logging out is a state change, and a GET route carries no CSRF token — any site could sign the user out with an
tag. Styled as a nav entry. #}
{{ _('Logout') }}
{% include "layouts/_language_switcher.html" %}
{% block page_title %}{{ _('Dashboard') }}{% endblock %}
{% block breadcrumb %}{% endblock %}
{% block header_actions %}{% endblock %}
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
×
{% endfor %} {% endif %} {% endwith %}
{% block content %}{% endblock %}
{% else %}
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}
{{ message }}
×
{% endfor %} {% endif %} {% endwith %}
TryoutPro
{{ _('Team Tryout Management System') }}
{% include "layouts/_language_switcher.html" %}
{% block auth_content %}{% endblock %}
{% endif %} {% block scripts %}{% endblock %}