Skip to content

Commit 72aff4f

Browse files
authored
Fix display when a person is a TAC rep for two or more projects/working groups (#1036)
Signed-off-by: John Mertic <[email protected]>
1 parent efe83cb commit 72aff4f

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

_includes/tacmembers.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
<td>
2727
{%- for project in site.data.projects -%}
2828
{%- if project["TAC Representative"] contains member["Full Name"] -%}
29-
{{ project["Name"] }} Representative
29+
{{ project["Name"] }} Representative<br>
3030
{%- elsif project["Chair"] contains member["Full Name"] -%}
31-
{{ project["Name"] }} Representative
31+
{{ project["Name"] }} Representative<br>
3232
{%- endif -%}
3333
{%- endfor -%}
3434
</td>

meetings/template.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,17 @@ Join the meeting at [{{ site.tac_lfx_meeting_url }}]({{ site.tac_lfx_meeting_url
3131
### Project Representatives
3232
{% for member in site.data.tacmembers -%}
3333
{% if member["Appointed By"] == "Vote of TSC Committee" and member['Voting Status'] != 'Observer' %}
34+
{%- assign roles = '' -%}
3435
{%- for project in site.data.projects -%}
3536
{% if project["TAC Representative"] contains member["Full Name"] %}
36-
- [ ] {{ member["Full Name"] }} - {{ project["Name"] }} Representative
37+
{%- capture roles -%}{{roles}}, {{ project["Name"] }} Representative{%- endcapture -%}
3738
{% elsif project["Chair"] contains member["Full Name"] %}
38-
- [ ] {{ member["Full Name"] }} - {{ project["Name"] }} Representative
39+
{%- capture roles -%}{{roles}}, {{ project["Name"] }} Representative{%- endcapture -%}
3940
{%- endif -%}
4041
{%- endfor -%}
42+
{%- if roles != '' %}
43+
- [ ] {{ member["Full Name"] }} - {{ roles | remove_first: ", "}}
44+
{%- endif -%}
4145
{%- endif -%}
4246
{% endfor %}
4347

@@ -57,13 +61,17 @@ Join the meeting at [{{ site.tac_lfx_meeting_url }}]({{ site.tac_lfx_meeting_url
5761
### Non-Voting Project and Working Group Representatives
5862
{% for member in site.data.tacmembers -%}
5963
{%- if member['Voting Status'] == 'Observer' -%}
64+
{%- assign roles = '' -%}
6065
{%- for project in site.data.projects -%}
6166
{% if project["TAC Representative"] contains member["Full Name"] %}
62-
- [ ] {{ member["Full Name"] }} - {{ project["Name"] }} Representative
67+
{%- capture roles -%}{{roles}}, {{ project["Name"] }} Representative{%- endcapture -%}
6368
{% elsif project["Chair"] contains member["Full Name"] %}
64-
- [ ] {{ member["Full Name"] }} - {{ project["Name"] }} Representative
69+
{%- capture roles -%}{{roles}}, {{ project["Name"] }} Representative{%- endcapture -%}
6570
{%- endif -%}
6671
{%- endfor -%}
72+
{%- if roles != '' %}
73+
- [ ] {{ member["Full Name"] }} - {{ roles | remove_first: ", "}}
74+
{%- endif -%}
6775
{%- endif -%}
6876
{% endfor %}
6977

0 commit comments

Comments
 (0)