Skip to content

Commit 5237285

Browse files
Syllabus: add conditional intructor training pre-/post- surveys (#618)
Port of carpentries/instructor-training@f488d24 Co-authored-by: François Michonneau <francois.michonneau@gmail.com> Co-authored-by: François Michonneau <francois.michonneau@gmail.com>
1 parent 1019f12 commit 5237285

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

_includes/syllabus.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@ <h2 id="schedule">Schedule</h2>
3030
<td class="col-md-3"><a href="{{ relative_root_path }}{% link setup.md %}">Setup</a></td>
3131
<td class="col-md-7">Download files required for the lesson</td>
3232
</tr>
33+
{% if site.instructor_training %}
34+
<tr>
35+
{% if multiday %}<td class="col-md-1"></td>{% endif %}
36+
<td class="{% if multiday %}col-md-1{% else %}col-md-2{% endif %}"></td>
37+
<td class="col-md-3"><a href="{{ site.instructor_pre_survey }}{{ site.github.project_title }}">Pre-training survey</a></td>
38+
<td class="col-md-7">Please fill out our pre-training survey before the start of the course.</td>
39+
</tr>
40+
{% endif %}
3341
{% for lesson_episode in lesson_episodes %}
3442
{% if site.episode_order %}
3543
{% assign episode = site.episodes | where: "slug", lesson_episode | first %}
@@ -78,6 +86,17 @@ <h2 id="schedule">Schedule</h2>
7886
{% endfor %}
7987
{% assign hours = current | divided_by: 60 %}
8088
{% assign minutes = current | modulo: 60 %}
89+
{% if site.instructor_training %}
90+
<tr>
91+
{% if multiday %}<td class="col-md-1"></td>{% endif %}
92+
<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>
93+
<td class="col-md-3"><a href="{{ site.instructor_post_survey }}{{ site.github.project_title }}">Post-training survey</a></td>
94+
<td class="col-md-7">Please fill out our post-training survey after the course.</td>
95+
</tr>
96+
{% assign current = current | plus: 15 %}
97+
{% assign hours = current | divided_by: 60 %}
98+
{% assign minutes = current | modulo: 60 %}
99+
{% endif %}
81100
<tr>
82101
{% if multiday %}<td class="col-md-1"></td>{% endif %}
83102
<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>

bin/boilerplate/_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ post_survey: "https://carpentries.typeform.com/to/UgVdRQ?slug="
5757
instructor_pre_survey: "https://www.surveymonkey.com/r/instructor_training_pre_survey?workshop_id="
5858
instructor_post_survey: "https://www.surveymonkey.com/r/instructor_training_post_survey?workshop_id="
5959

60+
# Set to 'true' for instructor training websites only.
61+
instructor_training: false
6062

6163
# Start time in minutes (0 to be clock-independent, 540 to show a start at 09:00 am).
6264
start_time: 0

0 commit comments

Comments
 (0)