Add auto-progression engine (ProgressionService) with rep increase, weight increase, deload, and felt-easy acceleration rules. Add AnalyticsService for user stats, exercise progress charts, and volume-by-day data. New dashboard and schedule routes with Chart.js visualizations. Progression badges shown inline on workout day view. Navigation updated with Dashboard and Schedule links. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
39 lines
1.3 KiB
HTML
39 lines
1.3 KiB
HTML
{% set admin = request.state.admin %}
|
|
{% set profiles = request.state.profiles %}
|
|
{% set active_profile = request.state.active_profile %}
|
|
{% if admin %}
|
|
<li>
|
|
<details class="dropdown">
|
|
<summary>
|
|
{% if active_profile %}
|
|
{{ active_profile.display_name }}
|
|
{% else %}
|
|
Select Profile
|
|
{% endif %}
|
|
</summary>
|
|
<ul dir="rtl">
|
|
{% for profile in profiles %}
|
|
<li>
|
|
<form method="POST" action="/profiles/switch" style="margin:0;">
|
|
<input type="hidden" name="profile_id" value="{{ profile.id }}">
|
|
<button type="submit" class="outline secondary"
|
|
style="width:100%; text-align:left; border:none;">
|
|
{{ profile.display_name }}
|
|
</button>
|
|
</form>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</details>
|
|
</li>
|
|
<li><a href="/workouts">Workouts</a></li>
|
|
<li><a href="/schedule">Schedule</a></li>
|
|
<li><a href="/dashboard">Dashboard</a></li>
|
|
<li><a href="/history">History</a></li>
|
|
<li><a href="/exercises">Exercises</a></li>
|
|
<li><a href="/profiles">Profiles</a></li>
|
|
<li><a href="/logout">Logout</a></li>
|
|
{% else %}
|
|
<li><a href="/login">Login</a></li>
|
|
{% endif %}
|