Skip to content

Commit

Permalink
Syllabus: add conditional intructor training pre-/post- surveys (#618)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
maxim-belkin and fmichonneau authored Jul 20, 2021
1 parent 1019f12 commit 5237285
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
19 changes: 19 additions & 0 deletions _includes/syllabus.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ <h2 id="schedule">Schedule</h2>
<td class="col-md-3"><a href="{{ relative_root_path }}{% link setup.md %}">Setup</a></td>
<td class="col-md-7">Download files required for the lesson</td>
</tr>
{% if site.instructor_training %}
<tr>
{% if multiday %}<td class="col-md-1"></td>{% endif %}
<td class="{% if multiday %}col-md-1{% else %}col-md-2{% endif %}"></td>
<td class="col-md-3"><a href="{{ site.instructor_pre_survey }}{{ site.github.project_title }}">Pre-training survey</a></td>
<td class="col-md-7">Please fill out our pre-training survey before the start of the course.</td>
</tr>
{% endif %}
{% for lesson_episode in lesson_episodes %}
{% if site.episode_order %}
{% assign episode = site.episodes | where: "slug", lesson_episode | first %}
Expand Down Expand Up @@ -78,6 +86,17 @@ <h2 id="schedule">Schedule</h2>
{% endfor %}
{% assign hours = current | divided_by: 60 %}
{% assign minutes = current | modulo: 60 %}
{% if site.instructor_training %}
<tr>
{% if multiday %}<td class="col-md-1"></td>{% endif %}
<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>
<td class="col-md-3"><a href="{{ site.instructor_post_survey }}{{ site.github.project_title }}">Post-training survey</a></td>
<td class="col-md-7">Please fill out our post-training survey after the course.</td>
</tr>
{% assign current = current | plus: 15 %}
{% assign hours = current | divided_by: 60 %}
{% assign minutes = current | modulo: 60 %}
{% endif %}
<tr>
{% if multiday %}<td class="col-md-1"></td>{% endif %}
<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>
Expand Down
2 changes: 2 additions & 0 deletions bin/boilerplate/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ post_survey: "https://carpentries.typeform.com/to/UgVdRQ?slug="
instructor_pre_survey: "https://www.surveymonkey.com/r/instructor_training_pre_survey?workshop_id="
instructor_post_survey: "https://www.surveymonkey.com/r/instructor_training_post_survey?workshop_id="

# Set to 'true' for instructor training websites only.
instructor_training: false

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

0 comments on commit 5237285

Please sign in to comment.