Skip to content

Commit 0f880e2

Browse files
committed
Update formatting for in-person/remote attendees
1 parent 4f0f2e8 commit 0f880e2

File tree

1 file changed

+31
-6
lines changed

1 file changed

+31
-6
lines changed

_layouts/attendance.html

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,44 @@ <h2>{{ page.date }}</h2>
1919
</table>
2020
</header>
2121

22+
{% assign remote_people = 0 %}
23+
{% assign local_people = "" | split: ',' %}
24+
{% assign remote_people = "" | split: ',' %}
25+
{% for person in site.data.meetings[page.year][page.month].attendance %}
26+
{% if person.remote == "1" %}
27+
{% assign remote_people = remote_people | push: person %}
28+
{% else %}
29+
{% assign local_people = local_people | push: person %}
30+
{% endif %}
31+
{% endfor %}
32+
2233
<div class="post-content">
2334
{{ content }}
2435

2536
<h4>This list is updated manually and may not contain the most recent registrations.</h4>
2637

2738
<ul>
28-
{% for person in site.data.meetings[page.year][page.month].attendance %}
29-
<li> {{ person.name }} <i>- {{ person.org }}</i>
30-
{% if person.remote == "1" %} - Remote{% endif %}
31-
{% if person.attend == "-1" %}<b>- Not Present</b>{% endif %}
32-
{% if person.attend == "0" %}<b>- Not Present for First Vote</b>{% endif %}
33-
</li>
39+
{% if remote_people.size > 1 %}
40+
<h3>In-Person Attendees</h3>
41+
{% endif %}
42+
43+
{% for person in local_people %}
44+
<li> {{ person.name }} <i>- {{ person.org }}</i>
45+
{% if person.attend == "-1" %}<b>- Not Present</b>{% endif %}
46+
{% if person.attend == "0" %}<b>- Not Present for First Vote</b>{% endif %}
47+
</li>
3448
{% endfor %}
49+
50+
{% if remote_people.size > 1 %}
51+
<h3>Remote Attendees</h3>
52+
53+
{% for person in remote_people %}
54+
<li> {{ person.name }} <i>- {{ person.org }}</i>
55+
{% if person.attend == "-1" %}<b>- Not Present</b>{% endif %}
56+
{% if person.attend == "0" %}<b>- Not Present for First Vote</b>{% endif %}
57+
</li>
58+
{% endfor %}
59+
{% endif %}
3560
</ul>
3661

3762
{% if page.prev_year != nil %}

0 commit comments

Comments
 (0)