-
Notifications
You must be signed in to change notification settings - Fork 288
/
group.hbs
104 lines (99 loc) · 3.74 KB
/
group.hbs
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{{#*inline "page"}}
<header class="mt3 mt2-ns mb4 mb5-ns tc tl-ns">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<h1>{{ data.info.[0].name }}</h1>
</div>
</header>
<section id="team-info" class="purple">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<p><b>{{ data.info.[0].description }}</b></p>
{{#if data.info.[0].chat}}<p><b>Chat Channel</b>: {{ data.info.[0].chat }}</p>{{/if}}
{{#if data.info.[0].repo}}<p><a href="{{data.info.[0].repo}}" class="button button-secondary">Team GitHub</a></p>{{/if}}
{{#if data.info.[0].email}}<p><a href="mailto:{{data.info.[0].email}}" class="button button-secondary">Email the Team</a></p>{{/if}}
<div class="row">
<h2>Members</h2>
{{#each data.info.[0].leads as |lead| ~}}
<div class="two columns group-lead group-member">
<p class="name">{{lead}} (Lead)</p>
<img src="https://avatars.githubusercontent.com/{{lead}}" />
</div>
{{/each~}}
{{#each data.info.[0].members as |member|}}
<div class="two columns group-member">
<p class="name">{{member}}</p>
<img src="https://avatars.githubusercontent.com/{{member}}" />
</div>
{{/each~}}
</div>
</div>
</section>
{{#if data.subteams ~}}
<section id="subteams" class="green">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<header>
<h2>Subteams</h2>
<div class="highlight"></div>
</header>
<div id="teams">
{{#each data.subteams as |st| ~}}
<div class="subteam">
<h3>{{st.name~}}</h3>
<div id="{{st.name}}-info">
<p><b>{{ st.description }}</b></p>
{{#if st.chat}}<p><b>Chat Channel</b>: {{ st.chat }}</p>{{/if}}
{{#if st.repo}}<p><a href="{{st.repo}}" class="button button-secondary">Team GitHub</a></p>{{/if}}
{{#if st.email}}<p><a href="mailto:{{st.email}}" class="button button-secondary">Email the Team</a></p>{{/if}}
</div>
<div id="{{st.name}}-members">
{{#each st.leads as |lead|}}
<div class="two columns group-member">
<p class="name">{{lead}} (Lead)</p>
<img src="https://avatars.githubusercontent.com/{{lead}}" />
</div>
{{/each~}}
{{#each st.members as |member|}}
<div class="two columns group-member">
<p class="name">{{member}}</p>
<img src="https://avatars.githubusercontent.com/{{member}}" />
</div>
{{/each~}}
</div>
</div>
{{/each~}}
</div>
</div>
</section>
{{/if ~}}
{{#if data.subwgs ~}}
<section id="subteams" class="red">
<div class="w-100 mw-none ph3 mw8-m mw9-l center f3">
<header>
<h2>Working Groups</h2>
<div class="highlight"></div>
</header>
<div id="teams">
{{#each data.subwgs as |st| ~}}
<div class="subteam">
<h3>{{st.name~}}</h3>
<div id="{{st.name}}-info">
<p><b>{{ st.description }}</b></p>
{{#if st.chat}}<p><b>Chat Channel</b>: {{ st.chat }}</p>{{/if}}
{{#if st.email}}<p><a href="mailto:{{st.repo}}" class="button button-secondary">Team GitHub</a></p>{{/if}}
{{#if st.email}}<p><a href="mailto:{{st.email}}" class="button button-secondary">Email the Team</a></p>{{/if}}
</div>
<div id="{{st.name}}-leads">
{{#each st.leads as |lead|}}
<div class="two columns group-member">
<p class="name">{{lead}}</p>
<img src="https://avatars.githubusercontent.com/{{lead}}" />
</div>
{{/each~}}
</div>
</div>
{{/each~}}
</div>
</div>
</section>
{{/if ~}}
{{/inline}}
{{~> (parent)~}}