{% from "components.html" import closer, scrim with context %}
{% set back = "/profiles/" ~ profile.id %}
{% set opened = profile.active_runs %}
{{ scrim(back, get=back) }}
{% if refusal %}
{{ profile.name }} cannot be deleted
{% else %}
Delete {{ profile.name }}?
{% endif %}
{{ closer(back, get=back) }}
Profile {{ profile.id }} · {{ profile.runs_total }} {{ "run" if profile.runs_total == 1 else "runs" }} · {{ opened ~ " open" if opened else "none open" }}