{% extends "base.html" %} {% block title %}Dashboard โ€” WeightTracker{% endblock %} {% block content %}
Current Weight
{{ '%.1f' % (latest.weight_kg | float) if latest else 'โ€”' }} kg
Weight Change
{% if weight_change is not none %} {{ '%+.1f' % weight_change }} kg {% else %} โ€” {% endif %}
{% if weight_change_pct is not none %}
{{ '%+.1f' % weight_change_pct }}% from start
{% endif %}
Current BMI
{{ '%.1f' % (latest.bmi | float) if latest and latest.bmi else 'โ€”' }}
Check-ins
{{ stats.total_checkins if stats else 0 }}
๐Ÿ”ฅ {{ streak.current }}-day streak{% if streak.best > streak.current %} ยท Best: {{ streak.best }}{% endif %}

๐Ÿ“ˆ Weight Over Time

๐Ÿ“Š Weekly Change

๐Ÿ• Recent Check-ins

View All
{% if recent_checkins %}
{% for c in recent_checkins %}
{{ '%.1f' % (c.weight_kg | float) }} kg
{% if c.bmi %}BMI {{ '%.1f' % (c.bmi | float) }} ยท {% endif %} {{ c.checked_in_at | sydney }}
{% endfor %}
{% else %}
๐Ÿ“

No check-ins yet

Log your first weigh-in to start tracking!

Check In Now
{% endif %}
{% if milestones %}

๐Ÿ… Milestones

{% for m in milestones %} {{ MILESTONE_LABELS.get(m.milestone_key, m.milestone_key) }} {% endfor %}
{% endif %}

๐Ÿ”” Activity Feed

{% if activity %}
{% for a in activity %}
{{ (a.display_name or a.username)[:1] | upper }}
{{ a.display_name or a.username }}
Logged {{ '%.1f' % (a.weight_kg | float) }} kg ยท {{ a.checked_in_at | sydney('%d %b, %H:%M') }}
{% endfor %}
{% else %}
๐Ÿ“ข

No activity yet. Be the first to check in!

{% endif %}
{% endblock %} {% block scripts %} {% endblock %}