summaryrefslogtreecommitdiff
path: root/templates/dashboard.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/dashboard.html')
-rw-r--r--templates/dashboard.html63
1 files changed, 63 insertions, 0 deletions
diff --git a/templates/dashboard.html b/templates/dashboard.html
new file mode 100644
index 0000000..da294ee
--- /dev/null
+++ b/templates/dashboard.html
@@ -0,0 +1,63 @@
+{% extends "base.html" %}
+
+{% block title %} — Dashboard{% endblock %}
+
+{% block content %}
+<section class="dashboard">
+
+ {% if ready %}
+ <div class="status ready">
+ <h2>YOU ARE READY</h2>
+ <p class="next-workout">Today you train <strong>Day {{ next_day }}: {{ next_day_name }}</strong>.</p>
+ <a href="/session" class="btn-primary">BEGIN SESSION</a>
+ </div>
+ {% else %}
+ <div class="status recovering">
+ <h2>RECOVERY IN PROGRESS</h2>
+ <p class="days-remaining">
+ <span class="big-number">{{ days_remaining }}</span>
+ <span class="label">day{{ days_plural }} remaining</span>
+ </p>
+ <p class="next-date">Next session prescribed for <strong>{{ next_date }}</strong>.</p>
+ <p class="recovery-reason">{{ reason }}</p>
+ <a href="/override" class="btn-warning">OVERRIDE RECOVERY</a>
+ </div>
+ {% endif %}
+
+ {% if has_history %}
+ <div class="history">
+ <h3>Recent Sessions</h3>
+ {% for session in sessions %}
+ <div class="history-entry">
+ <span class="history-date">{{ session.date }}</span>
+ <span class="history-day">Day {{ session.day }}: {{ session.day_name }}</span>
+ {% if session.override %}
+ <span class="history-badge override">OVERRIDE</span>
+ {% endif %}
+ </div>
+ {% endfor %}
+ </div>
+ {% endif %}
+
+ <div class="nav-links">
+ <a href="/exercises">Configure Exercises</a>
+ </div>
+
+</section>
+{% endblock %}
+
+{% block quote %}
+{% if ready %}
+<blockquote>
+ &ldquo;Every single workout must be a step forward if you are to get anywhere
+ with your training.&rdquo;
+ <cite>&mdash; Mike Mentzer</cite>
+</blockquote>
+{% else %}
+<blockquote>
+ &ldquo;Rest is not a sign of weakness. It is the very process by which
+ the body grows stronger.&rdquo;
+ <cite>&mdash; Mike Mentzer</cite>
+</blockquote>
+{% endif %}
+{% endblock %}
Copyright 2019--2026 Marius PETER