All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 36s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
69 lines
2.9 KiB
HTML
69 lines
2.9 KiB
HTML
<article>
|
|
<header>
|
|
<hgroup>
|
|
<h3>{{ exercise.name }}</h3>
|
|
<p>{{ exercise.muscle_group }} | {{ exercise.sets }} sets | Tempo: {{ exercise.tempo }}</p>
|
|
</hgroup>
|
|
</header>
|
|
|
|
{% if program %}
|
|
{% set suggestion = suggestions[exercise.id] if suggestions and exercise.id in suggestions else None %}
|
|
{% set pos = suggestion.ladder_position if suggestion and suggestion.ladder_position is defined else -1 %}
|
|
{% if pos >= 0 %}
|
|
<div style="display: flex; gap: 0.25rem; align-items: center; margin-bottom: 0.75rem;">
|
|
{% for step in [6, 8, 10, 12] %}
|
|
<div style="flex: 1; text-align: center; padding: 0.35rem 0;
|
|
border-radius: 0.25rem; font-size: 0.85rem; font-weight: 600;
|
|
{% if loop.index0 <= pos %}
|
|
background: var(--pico-primary); color: var(--pico-primary-inverse);
|
|
{% else %}
|
|
background: var(--pico-muted-border-color); color: var(--pico-muted-color);
|
|
{% endif %}">
|
|
{{ step }}
|
|
</div>
|
|
{% endfor %}
|
|
<small style="margin-left: 0.5rem; white-space: nowrap;">@ {{ suggestion.suggested_weight }}</small>
|
|
</div>
|
|
{% else %}
|
|
<p><small>Starting weight: {{ program.starting_weight }}</small></p>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
{% if suggestions and suggestions[exercise.id] %}
|
|
{% set suggestion = suggestions[exercise.id] %}
|
|
{% include "partials/progression_badge.html" %}
|
|
{% endif %}
|
|
|
|
<details>
|
|
<summary>Form Cues</summary>
|
|
<p>{{ exercise.form_cues }}</p>
|
|
</details>
|
|
|
|
<!-- Inline logging (Phase 4) -->
|
|
{% if active_profile %}
|
|
<div id="logs-exercise-{{ exercise.id }}">
|
|
{% if suggestions and suggestions[exercise.id] %}
|
|
{% set suggested_reps = suggestions[exercise.id].suggested_reps %}
|
|
{% set suggested_weight = suggestions[exercise.id].suggested_weight %}
|
|
{% endif %}
|
|
{% if existing_logs and existing_logs[exercise.id] %}
|
|
{% set suggested_reps = existing_logs[exercise.id][-1].reps_completed %}
|
|
{% set suggested_weight = existing_logs[exercise.id][-1].weight_used %}
|
|
{% elif suggestions and suggestions[exercise.id] %}
|
|
{% set suggested_reps = suggestions[exercise.id].suggested_reps %}
|
|
{% set suggested_weight = suggestions[exercise.id].suggested_weight %}
|
|
{% endif %}
|
|
{% if existing_logs and existing_logs[exercise.id] %}
|
|
{% set logs = existing_logs[exercise.id] %}
|
|
{% set exercise_id = exercise.id %}
|
|
{% set next_set = logs|length + 1 %}
|
|
{% include "partials/log_entry.html" %}
|
|
{% else %}
|
|
{% set exercise_id = exercise.id %}
|
|
{% set next_set = 1 %}
|
|
{% include "partials/log_form.html" %}
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
</article>
|