From 82da670f945fdcea0947af1ffc3f07373da8d131 Mon Sep 17 00:00:00 2001
From: Tim Burke <tim.burke@gmail.com>
Date: Wed, 9 Apr 2025 13:34:40 -0700
Subject: [PATCH] Allow per-schedule meeting chairs

Depends-On: https://review.opendev.org/c/opendev/yaml2ical/+/946824
Change-Id: I2b52bd780eed4b8eb678ce3b2054e3b4aad34c9e
---
 meetingindex.jinja | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meetingindex.jinja b/meetingindex.jinja
index 9db94314..66ffe47f 100644
--- a/meetingindex.jinja
+++ b/meetingindex.jinja
@@ -81,14 +81,16 @@ use in your favorite calendaring app:</p>
         {{ schedule.utc }} UTC
 </a>
 in <a href="ircs://irc.oftc.net:6697/{{ schedule.irc }}">#{{ schedule.irc }}</a>
-(IRC <a href="https://webchat.oftc.net/?randomnick=1&channels=%23{{ schedule.irc }}&prompt=1&uio=d4">webclient</a>)
+(IRC <a href="https://webchat.oftc.net/?randomnick=1&channels=%23{{ schedule.irc }}&prompt=1&uio=d4">webclient</a>){% if schedule.chair != meeting.chair %}, chair: {{ schedule.chair }}{% endif %}
    </div>
 {% endfor %}
    <div><span class="glyphicon glyphicon-calendar"></span>&nbsp;
 <a href="calendars/{{ meeting.outfile }}">ICS file</a> for this specific
 meeting</div>
+{% if meeting.chair %}
    <div><span class="glyphicon glyphicon-user"></span>&nbsp;
 Chair (to contact for more information): {{ meeting.chair }}</div>
+{% endif %}
 {% if meeting.extras.meeting_id %}
    <div><span class="glyphicon glyphicon-fast-backward"></span>&nbsp;
 Logs from <a href="http://eavesdrop.openstack.org/meetings/{{meeting.extras.meeting_id|replace('-', '_')}}/">past meetings</a></div>