From ca2926da0ae79c03e4d5dd668941078c98e53d06 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Fri, 2 Oct 2026 14:53:10 +1000 Subject: [PATCH] Show dashboard personal records as standalone badges --- app/static/style.css | 4 ---- app/templates/dashboard.html | 6 ++---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/app/static/style.css b/app/static/style.css index 4bb6c83..5f7fe1c 100644 --- a/app/static/style.css +++ b/app/static/style.css @@ -26,10 +26,6 @@ body{font-family:"Segoe UI",Arial,sans-serif}h1{font-weight:650;letter-spacing:- /* Keep account controls at the bottom without a decorative sidebar map. */ .sidebar .sidebar-bottom{margin-top:auto} -.records-panel { margin-bottom: 24px; } -.compact-records { padding: 16px 20px; } -.compact-records .section-head { margin-bottom: 12px; } -.compact-records .section-head h2 { font-size: 16px; } .record-badges { display: flex; flex-wrap: wrap; gap: 8px; } .record-badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid #394246; border-radius: 6px; color: #c5cccc; background: #202629; font-size: 12px; text-decoration: none; } .record-badge strong { font-size: 15px; color: #eeeae4; font-variant-numeric: tabular-nums; } diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index d8800f2..20898cc 100644 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -20,10 +20,8 @@
WEEKLY DISTANCE

Training volume

8 weeks to latest activity
TOTAL ASCENT
{{ '{:,.0f}'.format(stats.elevation) }}m

Elevation gain

Across {{ stats.count }} recorded activities

-{% if personal %} -
YOUR FASTEST DISTANCES

Personal records

Estimated · elapsed time
-

Fastest stretches within your runs, including stops. PR badges mark records set at the time of the run; your first effort establishes a record.

-
{% for record in record_book.records %}{{ record.label }}{{ pace_text(record.seconds * 1000 / record.distance) }}/km{% else %}

Import a run with recorded distance and timestamps to establish your first record.

{% endfor %}
+{% if personal and record_book.records %} +
{% for record in record_book.records %}{{ record.label }}{{ pace_text(record.seconds * 1000 / record.distance) }}/km{% endfor %}
{% endif %}
SESSION HISTORY

{{ 'Your activities' if personal else 'Shared activities' }}

{{ stats.count }} activities
{% include '_activities.html' %}
{% endblock %}