summaryrefslogtreecommitdiff
path: root/templates/dashboard.html
blob: b8e9466a34aab6415d6c3459a034cbaa4b7a22e4 (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>
  &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