Skip to content

Commit 16cd76c

Browse files
authored
display team alumni in the website (#1025)
1 parent fdebb0e commit 16cd76c

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

locales/en-US/governance.ftl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ governance-team-discord = { $channel } on Discord
2424
governance-user-github = GitHub: { $link }
2525
governance-user-team-leader = Team leader
2626
governance-members-header = Members
27+
governance-alumni-header = Alumni
28+
governance-alumni-thanks = We also want to thank all past members for their invaluable contributions!

src/teams.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ mod tests {
177177
github_id: 1234,
178178
},
179179
],
180+
alumni: Vec::new(),
180181
website_data: Some(TeamWebsite {
181182
name: format!("Team {}", name),
182183
description: format!("Description of {}", name),

templates/governance/group-team.hbs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,26 @@
5252
</div>
5353
{{/each}}
5454
</div>
55+
{{#if team.alumni}}
56+
<header class="pb3 pt3">
57+
<h2 class="f2">{{fluent "governance-alumni-header"}}</h2>
58+
</header>
59+
<p>{{fluent "governance-alumni-thanks"}}</p>
60+
<div class="flex flex-column flex-row-l flex-wrap-l justify-start">
61+
{{#each team.alumni as |member|}}
62+
<div class="w-100 w-33-l mb3 flex flex-row items-center">
63+
<a class="mr4 w3 h3 flex-no-shrink" href="https://github.com/{{member.github}}">
64+
<img class="w-100 h-100 bg-white br2" src="https://avatars.githubusercontent.com/{{member.github}}">
65+
</a>
66+
<div>
67+
{{member.name}}
68+
<div class="f4">
69+
GitHub: <a href="https://github.com/{{member.github}}">{{member.github}}</a>
70+
</div>
71+
</div>
72+
</div>
73+
{{/each}}
74+
</div>
75+
{{/if}}
5576
{{/if}}
5677
</div>

0 commit comments

Comments
 (0)