1 {% include base_path.html %}
4 Display syllabus in tabular form.
5 Days are displayed if at least one episode has 'start = true'.
8 {% include manual_episode_order.html %}
10 <div class="syllabus">
11 <h2 id="schedule">Schedule</h2>
13 {% assign lesson_number = 0 %}
15 {% assign multiday = false %}
16 {% for lesson_episode in lesson_episodes %}
17 {% if site.episode_order %}
18 {% assign episode = site.episodes | where: "slug", lesson_episode | first %}
20 {% assign episode = lesson_episode %}
22 {% if episode.start %}{% assign multiday = true %}{% break %}{% endif %}
24 {% assign current = site.start_time %}
26 <table class="table table-striped">
28 {% if multiday %}<td class="col-md-1"></td>{% endif %}
29 <td class="{% if multiday %}col-md-1{% else %}col-md-2{% endif %}"></td>
30 <td class="col-md-3"><a href="{{ relative_root_path }}{% link setup.md %}">Setup</a></td>
31 <td class="col-md-7">Download files required for the lesson</td>
33 {% for lesson_episode in lesson_episodes %}
34 {% if site.episode_order %}
35 {% assign episode = site.episodes | where: "slug", lesson_episode | first %}
37 {% assign episode = lesson_episode %}
39 {% if episode.start %} {% comment %} Starting a new day? {% endcomment %}
40 {% assign day = day | plus: 1 %}
41 {% if day > 1 %} {% comment %} If about to start day 2 or later, show finishing time for previous day {% endcomment %}
42 {% assign hours = current | divided_by: 60 %}
43 {% assign minutes = current | modulo: 60 %}
45 {% if multiday %}<td class="col-md-1"></td>{% endif %}
46 <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>
47 <td class="col-md-3">Finish</td>
48 <td class="col-md-7"></td>
51 {% assign current = site.start_time %} {% comment %}Re-set start time of this episode to general daily start time {% endcomment %}
53 {% assign hours = current | divided_by: 60 %}
54 {% assign minutes = current | modulo: 60 %}
56 {% if multiday %}<td class="col-md-1">{% if episode.start %}Day {{ day }}{% endif %}</td>{% endif %}
57 <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>
59 {% assign lesson_number = lesson_number | plus: 1 %}
60 {{ lesson_number }}. <a href="{{ relative_root_path }}{{ episode.url }}">{{ episode.title }}</a>
63 {% if episode.break %}
66 {% if episode.questions %}
67 {% for question in episode.questions %}
68 {{question|markdownify|strip_html}}
69 {% unless forloop.last %}
77 {% assign current = current | plus: episode.teaching | plus: episode.exercises | plus: episode.break %}
79 {% assign hours = current | divided_by: 60 %}
80 {% assign minutes = current | modulo: 60 %}
82 {% if multiday %}<td class="col-md-1"></td>{% endif %}
83 <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>
84 <td class="col-md-3">Finish</td>
85 <td class="col-md-7"></td>
90 The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.