Skip to content

Commit cdbeb0a

Browse files
committed
display team alumni in the website
1 parent dccf8a4 commit cdbeb0a

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-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: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,23 @@
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="mr3 w2 h2 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+
<a href="https://github.com/{{member.github}}">{{member.name}}</a>
68+
</div>
69+
</div>
70+
{{/each}}
71+
</div>
72+
{{/if}}
5573
{{/if}}
5674
</div>

0 commit comments

Comments
 (0)