Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update 2024-06-10-mtb-ngs.html #4989

Merged
merged 10 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CONTRIBUTORS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,14 @@ abueg:
name: Linelle Abueg
joined: 2022-01

lilianarutaihwa:
name: Liliana Rutaihwa
joined: 2024-06

linzyelton:
name: Linzy Elton
joined: 2024-06

lgallegovillar:
name: Lorena Gallego Villar
joined: 2021-10
Expand Down
14 changes: 11 additions & 3 deletions _includes/tutorial_list.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
{% assign page = include.page %}
{% assign responsive = include.responsive | default:true %}
{% assign async = include.async | default: page.async %}

<table class="table table-responsive table-striped tutorials-list">
<thead>
<tr>
{% if page.layout == 'event' and page.async != true %}
{% if page.layout == 'event' and async != true %}
<th scope="col">Time</th>
{% endif %}
{% if include.customheader %}
<th scope="col">Title</th>
<th scope="col" title="Description of the session">Description</th>

{% else %}
<th scope="col">Lesson</th>
<th scope="col" title="Lecture for this training. May include a video version using automated text-to-speech.">Slides</th>
<th scope="col" title="Practical tutorial guiding you through an analysis step by step.">Hands-on</th>
<th scope="col" title="Recordings of various instructors teaching this tutorial. May use an outdated version of the tutorial.">Recordings</th>
{% endif %}

{% if topic.type == "use" %}
<th scope="col" title="Datasets used in this tutorial, available from Zenodo.">Input dataset</th>
Expand All @@ -31,12 +38,13 @@
<!-- show materials that are not in draft mode, unless we are in a dev environment or on a draft page such as a learning pathway or topic -->

<tr>
{% if page.layout == 'event' and page.async != true %}
{% assign hidetime = material.async | default: async%}
{% if page.layout == 'event' and hidetimes != true %}
<td>{{material.time}}</td>
{% endif %}

{% if material.layout == 'custom' %} <!-- e.g. for events -->
<td> {{material.title}} </td>
<td> {{material.title | markdownify }} </td>
<td colspan="3"> {{material.description | markdownify }}</td>
{% else %}
<td class="tutorial_title">
Expand Down
16 changes: 10 additions & 6 deletions _layouts/event.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,29 +103,33 @@ <h3 id="Organisers">Organisers & Instructors</h3>

<!-- Programme Tab -->
<div class="tab-pane " id="program" role="tabpanel" aria-labelledby="program-tab">
<h2> Program </h2>


{% if event.external %}
For details about the course, please vist the <a href="{{event.external}}">Course Page</a>
{% else %}

{% if event.infrastructure %}
Before starting the course, make sure to follow the setup instructions
<br><br>
{% if event.infrastructure %}
<h3> Before you start </h3>
<p>Before starting the course, make sure to follow the setup instructions</p>

<button id="setup-button" class="btn btn-info" onClick="$('#setup-tab').tab('show');">View Setup Instructions</button>
<h3> Start the Course </h3>
{% endif %}


{% for section in event.program %}
{% if section.subsection %}
<h4 id="{{ section.section | slugify }}">{{ section.section }}</h4>
{% else %}
{% elsif section.section != nil %}
<h3 id="{{ section.section | slugify }}">{{ section.section }}</h3>
{% endif %}
<p>{{ section.description | markdownify }}</p>

{% if section.tutorials %}
{% assign hidetimes= section.async | default: page.async %}
{% assign material_list = site | convert_to_material_list: section.tutorials %}
{% include _includes/tutorial_list.html sub=material_list page=page responsive=false %}
{% include _includes/tutorial_list.html sub=material_list page=page responsive=false async=hidetimes customheader=section.custom %}
{% endif %}
{% endfor %}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion events/2024-04-01-example-event.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ infrastructure:
# Add GTN tutorials by supplying the topic and tutorial name
# For non-GTN sessions, add a "type:custom" session and description
program:
- section: "Monday: Introduction"
- section: "Monday: Introduction" # section title is optional
description: |
Short description of the program in this section.
Markdown formatted
Expand Down
Loading
Loading