aboutsummaryrefslogtreecommitdiffstats
path: root/_layouts/people_generic.html
blob: ee7b34ad6f54424f3b536ec5ecc1b788e059c9a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
layout: page
---

<section>
    {{ content }}

            {% assign committees = site.data[page.data].committees %}
            {% if committees[0] %}
                {% for committee in committees %}
                    <div class="contact_group">
                        <h2>{{ committee.name }}</h2>
                        {% for position in committee.positions%}
                            <div class="contact_group__subgroup">
                                <h3 class="contact__position_name">{{ position.name }}</h3>
                                <p>{{ position.description }}</p>
                                {% assign i = 0 %}
                                {% for member in position.members %}
                                    {% assign columnI = i | modulo: 4 %}
                                    {% if columnI == 0 %}
                                        <div class="section group">
                                    {% endif %}
                                        <div class="contact col span_1_of_4">
                                            {% if member.picture %}
                                                {% assign picture_path = member.picture %}
                                            {% else %}
                                                {% assign picture_path = page.placeholder_img %}
                                            {% endif %}
                                            <img class="contact__photo" style="max-height:200px; margin: 0 auto;" src="{{ picture_path | absolute_url }}" alt="">
                                            <h4 class="contact__person_name contact__person_name--generic">{{ member.name }}</h4>
                                            {% if member.extra_info %}
                                                <div class="contact__section">
                                                    <span>{{ member.extra_info }}</span>
                                                </div>
                                            {% endif %}
                                            {% if member.email %}
                                                <div class="contact__section">
                                                    {% assign email_tokens = member.email | split: '@' %}
                                                    <i class="fa fa-envelope" aria-hidden="true"></i> <a href="mailto:{{ email_tokens[0] }}REMOVETHIS@{{ email_tokens[1] }}">{{ email_tokens[0] }}</a><br>
                                                </div>
                                            {% endif %}
                                        </div>
                                    {% assign lastElement = position.members | size | minus: 1 %}
                                    {% if columnI == 3 or i == lastElement %}
                                        </div>
                                    {% endif %}
                                    {% assign i = i | plus: 1 %}
                                {% endfor %}
                            </div>
                        {% endfor %}
                    </div>
                {% endfor %}
            {% endif %}
</section>