Added functionality to support internal team members as speakers of a spring school talk.

This commit is contained in:
Ateeb Ahmed
2025-03-18 16:10:33 +01:00
parent b36f85b85e
commit 17070d9926
8 changed files with 43 additions and 13 deletions
+11 -2
View File
@@ -1,10 +1,18 @@
# speaker to id mapping:
# external speaker to id mapping:
# behl : 1
# chiribiri : 2
# knoll : 3
# wech : 4
# wolfgang : 5
# internal speaker to id mapping:
# schreiber : 1
# krause : 2
# hotho : 3
# dulny : 4
# jabbarigargari: 5
# terekhov : 6
days:
- title: "Monday 7th April 2025"
date: '2025-04-07'
@@ -14,7 +22,8 @@ days:
end_time: "09:00"
color: "#3788d8"
id: 1
speaker_idx: 4 #
external_speaker_idx: 4 # An event can either have external speaker / internal speaker or both (like in this case)
internal_speaker_idx: 4 #
description: 'This talk focuses on numerical computations to determine the heat shock a patient would get while going through an MRI.'
- title: "Welcome Ceremony"
start_time: "09:00"
+1
View File
@@ -11,6 +11,7 @@ address:
University Hospital Würzburg /
Am Schwarzenberg 15 /
97078 Würzburg, Germany
idx : 1
---
+1
View File
@@ -11,6 +11,7 @@ address:
University of Würzburg /
Emil-Fischer-Straße 50 /
97074 Würzburg Germany
idx: 2
---
+1
View File
@@ -11,6 +11,7 @@ address:
University of Würzburg /
Emil-Fischer-Straße 50 /
97074 Würzburg Germany
idx: 3
---
+1
View File
@@ -11,6 +11,7 @@ address:
University of Würzburg /
Emil-Fischer-Straße 50 /
97074 Würzburg Germany
idx: 4
---
{% include team_member_basic_info.html %}
+1
View File
@@ -12,6 +12,7 @@ address:
University Hospital Würzburg /
Am Schwarzenberg 15 /
97078 Würzburg, Germany
idx: 5
---
{% include team_member_basic_info.html %}
+1
View File
@@ -11,6 +11,7 @@ address:
University Hospital Würzburg /
Am Schwarzenberg 15 /
97078 Würzburg, Germany
idx: 6
---
+26 -11
View File
@@ -11,7 +11,7 @@ sidebar:
{% for day in site.data.spring.days %}
<div class="spring-school-day">
<h2>{{day.title}}</h2>
{% for session in day.sessions%}
{% for session in day.sessions %}
<div class="session-box" id="{{session.id}}" style="background-color: {{session.color}}; border-radius: 4px; padding: 6px; border: 1px solid gray;">
<div class="session-title" style="display: flex;">
<div style="flex-shrink: 0; margin-left: 8px;">{{session.start_time}} - {{session.end_time}}</div>
@@ -24,24 +24,39 @@ sidebar:
</div>
<div class="more-information-section">
{% if session.description %}
<p style="margin-left: 8px"><span style="font-weight: bold">Content: </span> {{session.description}}</p>
{% else %}
<p style="margin-left: 8px">Details of each session will be announced later</p>
{% endif %}
{% if session.speaker_idx %}
{% for speaker in site.keynote_speakers %}
{% if speaker.idx == session.speaker_idx %}
{% assign speaker_profile = speaker %}
{% endif %}
{% endfor %}
<div style="margin-left: 8px;"><span style="font-weight: bold">Speaker: </span> <a style='color: black;' href='{{speaker_profile.url}}'> {{speaker_profile.title}}</a></div>
{% endif %}
<div style="margin-left: 8px;"><span style="font-weight: bold">Speaker: </span>
{% if session.external_speaker_idx %}
{% for speaker in site.keynote_speakers %}
{% if speaker.idx == session.external_speaker_idx %}
{% assign external_speaker_profile = speaker %}
{% endif %}
{% endfor %}
<a style='color: black;' href='{{external_speaker_profile.url}}'> {{external_speaker_profile.title}}</a>
{% endif %}
{% if session.internal_speaker_idx %}
{% for speaker in site.team_members %}
{% if speaker.idx == session.internal_speaker_idx %}
{% assign internal_speaker_profile = speaker %}
{% endif %}
{% endfor %}
<a style='color: black;' href='{{internal_speaker_profile.url}}'> {{internal_speaker_profile.title}}</a>
{% endif %}
</div>
</div>
</div>
{% endfor %}
</div>
{% endfor %}
</div>
</div>