Files
SneakySwole/app/templates/pages/workout_days.html
Phillip Tarrant 4b117c6fa7 feat: add smart "Workout Now" recommendation to workout picker
Auto-recommends the next workout in the 4-day cycle based on the
user's last completed session (one with logged sets). Redesigns
the /workouts page with highlighted recommendation card and
renames the back button to "Change Workout".

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 13:05:39 -05:00

39 lines
1.1 KiB
HTML

{% extends "base.html" %}
{% block title %}Workout Now — SneakySwole{% endblock %}
{% block content %}
<h1>Workout Now</h1>
<p>
{% if last_workout_name %}
Last workout: <strong>{{ last_workout_name }}</strong> on {{ last_workout_date.strftime('%b %-d') }}
{% else %}
No workouts yet — start with Push!
{% endif %}
</p>
<div class="grid">
{% for day in days %}
<article>
<header>
<h3>Day {{ day.day_number }}: {{ day.name }}</h3>
{% if day.id == recommended_day_id %}
<mark>Recommended Next</mark>
{% endif %}
</header>
<p>{{ day.description }}</p>
<footer>
{% if day.id == recommended_day_id %}
<a href="/workouts/{{ day.name|lower|replace(' ', '-') }}"
role="button">Start Workout</a>
{% else %}
<a href="/workouts/{{ day.name|lower|replace(' ', '-') }}"
role="button" class="outline">Start Workout</a>
{% endif %}
</footer>
</article>
{% endfor %}
</div>
{% endblock %}