blob: da294ee286247d40a1011238b198d5995596afd6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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>
“Every single workout must be a step forward if you are to get anywhere
with your training.”
<cite>— Mike Mentzer</cite>
</blockquote>
{% else %}
<blockquote>
“Rest is not a sign of weakness. It is the very process by which
the body grows stronger.”
<cite>— Mike Mentzer</cite>
</blockquote>
{% endif %}
{% endblock %}
|