File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ impl Data {
5959 self . teams
6060 . into_iter ( )
6161 . filter ( |team| team. website_data . is_some ( ) )
62- . filter ( |team| team. subteam_of . is_none ( ) )
62+ . filter ( |team| matches ! ( team. subteam_of. as_deref ( ) , None | Some ( "launching-pad" ) ) )
6363 . map ( |team| IndexTeam {
6464 url : format ! (
6565 "{}/{}" ,
@@ -98,8 +98,12 @@ impl Data {
9898 . ok_or ( TeamNotFound ) ?;
9999
100100 // Don't show pages for subteams
101- if main_team. subteam_of . is_some ( ) {
102- return Err ( TeamNotFound . into ( ) ) ;
101+ if let Some ( subteam) = & main_team. subteam_of {
102+ // Launching-pad does not have a page of its own, but we do want
103+ // to show the working groups that are inside it.
104+ if subteam != "launching-pad" {
105+ return Err ( TeamNotFound . into ( ) ) ;
106+ }
103107 }
104108
105109 // Then find all the subteams, working groups and project groups.
You can’t perform that action at this time.
0 commit comments