{% extends "base.html" %} {% block title %}Dashboard — AHDX{% endblock %} {% block body %}

Dashboard

{% if cards %}
{% for c in cards %}
{{ c['value'] }}{% if c['unit'] %} {{ c['unit'] }}{% endif %} {{ c['label'] }}{% if c['when'] %} · {{ c['when'] }}{% endif %}
{% endfor %}
{% endif %}

What's in here

{{ totals['n'] or 0 }}records
{{ types|length }}types
{{ workouts }}workouts
{{ summaries }}day summaries

{% if totals['first'] %} Data spans {{ totals['first'][:10] }} to {{ totals['last'][:10] }}. {% else %} This database is empty. Import an export on the Import page. {% endif %}

{% if types %}

Record types

{% for t in types %} {% endfor %}
TypeCountFromTo
{{ t['type'].replace('HKQuantityTypeIdentifier','').replace('HKCategoryTypeIdentifier','') }} {{ t['n'] }} {{ t['first'][:10] if t['first'] else '' }} {{ t['last'][:10] if t['last'] else '' }} browse
{% endif %} {% endblock %}