1 {% include base_path.html %}
4 Display syllabus in tabular form.
5 Days are displayed if at least one episode has 'start = true'.
8 <h2 id="schedule">Schedule</h2>
10 {% assign lesson_number = 0 %}
12 {% assign multiday = false %}
13 {% for episode in site.episodes %}
14 {% if episode.start %}{% assign multiday = true %}{% break %}{% endif %}
16 {% assign current = site.start_time %}
18 <table class="table table-striped">
20 {% if multiday %}<td class="col-md-1"></td>{% endif %}
21 <td class="{% if multiday %}col-md-1{% else %}col-md-2{% endif %}"></td>
22 <td class="col-md-3"><a href="{{ relative_root_path }}{% link setup.md %}">Setup</a></td>
23 <td class="col-md-7">Download files required for the lesson</td>
25 {% for episode in site.episodes %}
26 {% if episode.start %} {% comment %} Starting a new day? {% endcomment %}
27 {% assign day = day | plus: 1 %}
28 {% if day > 1 %} {% comment %} If about to start day 2 or later, show finishing time for previous day {% endcomment %}
29 {% assign hours = current | divided_by: 60 %}
30 {% assign minutes = current | modulo: 60 %}
32 {% if multiday %}<td class="col-md-1"></td>{% endif %}
33 <td class="{% if multiday %}col-md-1{% else %}col-md-2{% endif %}">{% if hours < 10 %}0{% endif %}{{ hours }}:{% if minutes < 10 %}0{% endif %}{{ minutes }}</td>
34 <td class="col-md-3">Finish</td>
35 <td class="col-md-7"></td>
38 {% assign current = site.start_time %} {% comment %}Re-set start time of this episode to general daily start time {% endcomment %}
40 {% assign hours = current | divided_by: 60 %}
41 {% assign minutes = current | modulo: 60 %}
43 {% if multiday %}<td class="col-md-1">{% if episode.start %}Day {{ day }}{% endif %}</td>{% endif %}
44 <td class="{% if multiday %}col-md-1{% else %}col-md-2{% endif %}">{% if hours < 10 %}0{% endif %}{{ hours }}:{% if minutes < 10 %}0{% endif %}{{ minutes }}</td>
46 {% assign lesson_number = lesson_number | plus: 1 %}
47 {{ lesson_number }}. <a href="{{ relative_root_path }}{{ episode.url }}">{{ episode.title }}</a>
50 {% if episode.break %}
53 {% if episode.questions %}
54 {% for question in episode.questions %}
55 {{question|markdownify|strip_html}}
56 {% unless forloop.last %}
64 {% assign current = current | plus: episode.teaching | plus: episode.exercises | plus: episode.break %}
66 {% assign hours = current | divided_by: 60 %}
67 {% assign minutes = current | modulo: 60 %}
69 {% if multiday %}<td class="col-md-1"></td>{% endif %}
70 <td class="{% if multiday %}col-md-1{% else %}col-md-2{% endif %}">{% if hours < 10 %}0{% endif %}{{ hours }}:{% if minutes < 10 %}0{% endif %}{{ minutes }}</td>
71 <td class="col-md-3">Finish</td>
72 <td class="col-md-7"></td>
77 The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.