{% extends '_layout.html' %} {% from 'components.html' import reading_rows %} {% block title %}{{ view|title }} · BP Tracker{% endblock %} {% block content %}

YOUR DAILY PICTURE

{{ view|title }}

{{ 'A clearer view of your blood pressure.' if view == 'overview' else 'Every reading, in one place.' if view == 'history' else 'See how your readings change over time.' }}

Add reading
{% if not calendar %}{% include 'partials/range_filter.html' %}{% endif %} {% if view == 'overview' %}

Latest reading

{% if latest %}

{{ latest.systolic }} / {{ latest.diastolic }} mmHg

{{ latest.heart_rate }} bpm · {{ latest.local_timestamp.strftime('%d %b, %I:%M %p') }}

Most recent, across all dates

{% else %}

Your first reading starts here

Record your blood pressure and pulse to get started.

{% endif %}

Period average

{% if stats.count %}

{{ stats.systolic }} / {{ stats.diastolic }}

mmHg · {{ stats.pulse }} bpm average pulse

{% else %}

No readings yet

Averages appear when you add a reading.

{% endif %}

{{ selected.start.strftime('%d %b') }} – {{ selected.end.strftime('%d %b %Y') }}

Readings recorded

{{ stats.count }}

In the selected period

Times shown in {{ timezone_name }}

{% endif %} {% if view in ['overview', 'trends'] %}{% include 'partials/trend.html' %}{% endif %} {% if view == 'history' %}
{{ stats.count }} readings · {{ timezone_name }}
{% endif %} {% if calendar %}

{{ selected.start.strftime('%d %b') }} – {{ selected.end.strftime('%d %b %Y') }}

Daily averages in mmHg. Select a day to see its readings.

{% for day in calendar.days %}{{ day.date.strftime('%a') }}{{ day.date.day }}{% if day.data %}{{ day.data.systolic }} / {{ day.data.diastolic }}{{ day.data.count }} reading{{ 's' if day.data.count != 1 else '' }}{% else %}No readings{% endif %}{% endfor %}
{% elif view in ['overview', 'history'] %}

{{ 'Recent readings' if view == 'overview' else 'Reading history' }}

Personal thresholds: {{ sys_threshold }}/{{ dia_threshold }} mmHg · Adjust in Settings

{% if view == 'overview' %}View all {% endif %}
{{ reading_rows(readings, sys_threshold, dia_threshold) }} {% if pagination and pagination.pages > 1 %}{% endif %}
{% endif %} {% endblock %}