{% extends "base.html" %} {% block title %} {% trans %}My account{% endtrans %} {% endblock %} {% block subtitle %} {% trans %}my profiles{% endtrans %} {% endblock %} {% block content %}
{% for service, profile in profiles %} {% set service = profile.service %} {% set status = profile.STATUSES[profile.status] %}

{{ service.name }} / {{ profile.username }}

{% if profile.comment %}
{{ profile.comment }}
{% else %}
{% trans %}No profile description{% endtrans %}
{% endif %}
{{ macros.profile_status(profile) }}
{% if not service.single_profile %} {% if service.policy in ("open", "burst") and profile.__class__.filter(service, current_user).count() < service.max_profiles %} {{ render_icon("plus-circle-fill") }} {% trans %}Create another profile{% endtrans %} {% elif service.policy in ("managed", "burst") %} {{ render_icon("question-circle-fill") }} {% trans %}Request another profile{% endtrans %} {% endif %} {% if service.policy not in ("locked",) %} {{ render_icon("hand-index-fill") }} {% trans %}Claim another profile{% endtrans %} {% endif %} {% endif %} {% if profile.transition_step %} {% set transition = profile.TRANSITIONS[profile.transition] %} {% set color, status = profile.STATUSES[transition.to] %} {% set when = transition.delta(profile) %} {{ render_icon("clock") }} {% trans status, when %}Profile will be {{ status }} in {{ when }}{% endtrans %} {% endif %} {% for action in profile.actions %} {{ render_icon(action.icon) }} {{ action.description | capitalize }} {% endfor %}
{% endfor %}
{% endblock %}