{% extends "base.html" %} {% from "_when.html" import when_field with context %} {% from "_kit_fields.html" import spec_fields with context %} {% block title %}Kit Β· {{ app_name }}{% endblock %} {% block body %}
{{ totals.owned }} owned Β· {{ totals.by_kind.toy }} toy{{ '' if totals.by_kind.toy == 1 else 's' }} Β· {{ totals.by_kind.gear }} gear Β· {{ totals.by_kind.consumable }} consumable{{ '' if totals.by_kind.consumable == 1 else 's' }} {%- if totals.wishlist %} Β· {{ totals.wishlist }} on the wishlist{% endif %} {%- if totals.bouts %} Β· {{ totals.bouts }} bouts Β· {{ totals.seconds|dur }}{% endif %} {%- if totals.priced %} Β· {{ cur }}{{ '%.2f'|format(totals.spend_cents / 100) }} spent (of {{ totals.priced }} you priced){% endif %}
{# ββ what is on right now ββββββββββββββββββββββββββββββββββββββββββββββββββ #} {% if open %}on since {{ b.started_at|local }} Β· {{ (now - b.started_at)|dur }}
β {{ stale|length }} play bout{{ '' if stale|length == 1 else 's' }} still open since {{ stale[0].started_at|rel(now) }}. Finish it with the real time, or discard it β nothing will guess an end for you.
{% endif %} {# ββ π₯ calendar drafts to finish (#42) ββββββββββββββββββββββββββββββββββββ #} {#- π΄ A draft is NOT a bout: nothing about it counts until it is finished below. -#} {% if drafts or drafts_changed %}From your calendar β the times are there; finish each one (it lands as βΆ logged later) or discard it. A draft counts for nothing until it's finished.
{% for d in drafts %}{{ d.start|local }}{% if d.end %} β {{ d.end|local }} Β· {{ (d.end - d.start)|dur }}{% else %} Β· no end time β say how long{% endif %}
{{ kept.err }}
{% endif %}{%- endmacro -%} {%- macro kind_pick(action, default='play') -%} {%- set k = kv(action, 'bout_kind', default) -%}Nothing owned yet. Add something below.
{% endfor %}𦴠Play is a session that ends somehow β you say how, and answer the questions. π§Ί Wear is time something is on β the hours are the point. Start one now and finish it when it comes off, or π log one from earlier.
{% set a = '/kit/start' %}Done and dusted? Tell it in one go β it lands at the time it happened, marked βΆ logged later. Local time, {{ tz }}.
{% set a = '/kit/log' %} {%- set f = fill or {} %}Nothing running low, nothing going off, nothing neglected. Tidy kennel.
{% endif %}Nothing here yet.
{% endfor %}