{% 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 }}
{{ profile.comment or "No profile description" }}
{{ 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 %}
{% endif %}
{% endif %}
{% if profile.transition_step %}
{% set transition = profile.TRANSITIONS[profile.transition] %}
{% set color, status = profile.STATUSES[transition.to] %}
{% set when = transition.delta(profile) %}