{% 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 }}

๐Ÿ“ˆ 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 %} {% if m.milestone_key == 'first_checkin' %}โœ… First Check-in {% elif m.milestone_key == '5_checkins' %}๐Ÿ”ฅ 5 Check-ins {% elif m.milestone_key == '10_checkins' %}๐Ÿ’ช 10 Check-ins {% elif m.milestone_key == '25_checkins' %}๐ŸŽฏ 25 Check-ins {% elif m.milestone_key == 'lost_1kg' %}โญ 1kg Lost {% elif m.milestone_key == 'lost_2kg' %}โญ 2kg Lost {% elif m.milestone_key == 'lost_5kg' %}๐ŸŒŸ 5kg Lost {% elif m.milestone_key == 'lost_10kg' %}๐Ÿ’Ž 10kg Lost {% elif m.milestone_key == 'lost_15kg' %}๐Ÿ‘‘ 15kg Lost {% elif m.milestone_key == 'lost_20kg' %}๐Ÿ† 20kg Lost {% else %}{{ m.milestone_key }} {% endif %} {% 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 %}