diff --git a/locales/en-US/governance.ftl b/locales/en-US/governance.ftl index e06c6995f..60d65ca79 100644 --- a/locales/en-US/governance.ftl +++ b/locales/en-US/governance.ftl @@ -19,6 +19,7 @@ governance-team-email = Email the { $teamname } governance-team-repository = { $teamname } repository governance-team-discord = { $channel } on Discord governance-team-zulip = { $stream } on Zulip +governance-team-matrix-room = { $room } on Matrix governance-user-github = GitHub: { $link } governance-user-team-leader = Team leader governance-members-header = Members diff --git a/src/redirect.rs b/src/redirect.rs index f558e2826..db6c8bc33 100644 --- a/src/redirect.rs +++ b/src/redirect.rs @@ -24,6 +24,11 @@ static PAGE_REDIRECTS: &[(&str, &str)] = &[ ("security.html", "policies/security"), ("team.html", "governance"), ("user-groups.html", "community"), + // Team changes + ( + "governance/teams/release", + "governance/teams/infra#team-release", + ), ]; static STATIC_FILES_REDIRECTS: &[(&str, &str)] = &[ diff --git a/src/teams.rs b/src/teams.rs index 12d050f99..5642499bd 100644 --- a/src/teams.rs +++ b/src/teams.rs @@ -59,7 +59,16 @@ impl Data { self.teams .into_iter() .filter(|team| team.website_data.is_some()) - .filter(|team| matches!(team.subteam_of.as_deref(), None | Some("launching-pad"))) + // On the main page, show the leadership-council, all top-level + // teams, and everything in the launching pad. We may want to + // consider putting launching pad teams in a separate page in the + // future? + .filter(|team| { + matches!( + team.subteam_of.as_deref(), + None | Some("launching-pad") | Some("leadership-council") + ) + }) .map(|team| IndexTeam { url: format!( "{}/{}", @@ -99,9 +108,11 @@ impl Data { // Don't show pages for subteams if let Some(subteam) = &main_team.subteam_of { - // Launching-pad does not have a page of its own, but we do want - // to show the working groups that are inside it. - if subteam != "launching-pad" { + // Each launching-pad and leadership-council subteam has their own + // page. Subteams of those subteams do not get a page of their own + // (they are shown in their parent page). We may want to consider + // putting launching-pad teams into a separate page in the future. + if !matches!(subteam.as_ref(), "launching-pad" | "leadership-council") { return Err(TeamNotFound.into()); } } @@ -120,6 +131,9 @@ impl Data { self.teams .into_iter() + // The leadership-council page should show just the + // leadership-council, not everything underneath it. + .filter(|_| main_team.name != "leadership-council") .filter(|team| team.website_data.is_some()) .filter(|team| { // For teams find not only direct subteams but also transitive ones. diff --git a/templates/governance/group-team.html.hbs b/templates/governance/group-team.html.hbs index 5fd32b72d..9cdebb269 100644 --- a/templates/governance/group-team.html.hbs +++ b/templates/governance/group-team.html.hbs @@ -1,7 +1,7 @@ - +
-

{{team-text team name}}

+

{{team-text team name}}

@@ -36,6 +36,13 @@
{{/if}} + {{#if team.website_data.matrix_room}} +
+ + {{#fluent "governance-team-matrix-room"}}{{#fluentparam "room"}}{{team.website_data.matrix_room}}{{/fluentparam}}{{/fluent}} + +
+ {{/if}}