Skip to content

Commit 00adf65

Browse files
committed
Gate this change to staging only.
1 parent 6e40d59 commit 00adf65

File tree

2 files changed

+22
-19
lines changed

2 files changed

+22
-19
lines changed

Sources/App/Views/Home/HomeIndex+View.swift

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -59,25 +59,25 @@ enum HomeIndex {
5959
.section(
6060
.class("two-column"),
6161
.section(
62-
// ---------------------------------------------------------------
63-
// Temporarily removed until we stop promoting Ready for Swift 6
64-
// .panelButton(cssClass: "podcast",
65-
// linkUrl: ExternalURL.podcast,
66-
// bodyNode: .podcastPanelBody(includeHeading: false),
67-
// cta: "Listen Now",
68-
// analyticsEvent: "Home - Podcast CTA"),
69-
// ---------------------------------------------------------------
70-
.panelButton(cssClass: "rfs6",
71-
linkUrl: SiteURL.readyForSwift6.relativeURL(),
72-
bodyNode: .group(
73-
.p(
74-
.strong("Are the packages you use safe from data races?"),
75-
.text(" "),
76-
.text("We’re tracking progress towards data race safety this summer. Find out which packages are “Ready for Swift 6” and check for packages marked as “Safe from data races” when browsing the index.")
77-
)
78-
),
79-
cta: "Track Progress",
80-
analyticsEvent: "Home - Ready for Swift 6 CTA"),
62+
.if(Current.environment() == .production,
63+
.panelButton(cssClass: "podcast",
64+
linkUrl: ExternalURL.podcast,
65+
bodyNode: .podcastPanelBody(includeHeading: false),
66+
cta: "Listen Now",
67+
analyticsEvent: "Home - Podcast CTA"),
68+
else:
69+
.panelButton(cssClass: "rfs6",
70+
linkUrl: SiteURL.readyForSwift6.relativeURL(),
71+
bodyNode: .group(
72+
.p(
73+
.strong("Are the packages you use safe from data races?"),
74+
.text(" "),
75+
.text("We’re tracking progress towards data race safety this summer. Find out which packages are “Ready for Swift 6” and check for packages marked as “Safe from data races” when browsing the index.")
76+
)
77+
),
78+
cta: "Track Progress",
79+
analyticsEvent: "Home - Ready for Swift 6 CTA")
80+
),
8181
.section(
8282
.class("recent"),
8383
.div(

Sources/App/Views/PackageController/GetRoute.Model+ext.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,9 @@ extension API.PackageController.GetRoute.Model {
310310
}
311311

312312
func dataRaceSafeListItem() -> Node<HTML.ListContext> {
313+
guard Current.environment() != .production
314+
else { return .empty }
315+
313316
return .li(
314317
.class("data-race-safe"),
315318
.text("Safe from data races")

0 commit comments

Comments
 (0)