{#- The Handler page's Mischief card. `ms` = mischief.standing(); `cq` = the confession question. -#} {% if ms and ms.on and ms.marks %}

{{ ms.icon }} {{ ms.label }} {{ ms.points }} mischief this week · your {{ hs.name }} is {{ ms.temperament }} how it works →

{#- The ladder: where the week's points put you, what the next rung costs, and when the oldest mark stops counting. `levels` = mischief.LEVELS, lowest first (handler routes). -#} {% if levels %}{% set top = levels[-1].at %}

{% set ns = namespace(next=None) %}{% for l in levels %}{% if ns.next is none and l.at > ms.points %}{% set ns.next = l %}{% endif %}{% endfor %} {% if ns.next %}{{ ns.next.at - ms.points }} more and it's {{ ns.next.icon }} {{ ns.next.label }}{% else %}Nothing further down than this{% endif %} {% if ms.live %} · the oldest live mark ages out {{ ms.live|map(attribute='expires_at')|min|rel(now) }}{% else %} · nothing live — every mark is confessed, held back or capped{% endif %}

{% endif %}
{{ ms.marks|length }} mark{{ 's' if ms.marks|length != 1 }} this week
{% if ms.level == 'short_leash' or ms.level == 'doghouse' %}

🦮 Short leash: check-ins every {{ hs.checkin.hours|round(1)|string|replace('.0', '') }} h instead of {{ hs.checkin.base_hours }} h.

{% endif %} {% if cq %}
🙏 {{ 'Make it right' if ms.level == 'doghouse' else 'Confess one' }} {{ cq.lapse.icon }} about: {{ cq.lapse.label }}

{{ cq.text }}

at least {{ minchars }} characters · clears the newest mark (one of this kind first) · {{ per_day }} a day · +5 xp

{% endif %}
{% endif %}