Skip to content

Commit b9d0533

Browse files
authored
Merge pull request #4079 from SwiftPackageIndex/downtime-announcement
Added downtime announcement banner
2 parents 2300d20 + 82ef583 commit b9d0533

38 files changed

Lines changed: 38 additions & 10 deletions

File tree

Sources/App/Views/PublicPage.swift

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -329,19 +329,10 @@ class PublicPage {
329329
}
330330

331331
func announcementBanner() -> Node<HTML.BodyContext> {
332-
return .empty
333-
334-
/*
335332
return .p(
336333
.class("announcement"),
337-
.text("Has it really been five years since Swift Package Index launched? Read our "),
338-
.a(
339-
.href(SiteURL.blogPost(.value("five-years-of-the-swift-package-index")).relativeURL()),
340-
.text("anniversary blog post")
341-
),
342-
.text("!")
334+
.text("Swift Package Index will be temporarily unavailable on Tuesday, 23rd of June for scheduled maintenance.")
343335
)
344-
*/
345336
}
346337

347338
/// Optional content that will be inserted in between the page header and the main content for the page.

Tests/AppTests/__Snapshots__/WebpageSnapshotTests/AuthorShow_document.1.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ <h1>
6464
</nav>
6565
</div>
6666
</header>
67+
<p class="announcement">Swift Package Index will be temporarily unavailable on Tuesday, 23rd of June for scheduled maintenance.</p>
6768
<nav class="breadcrumbs">
6869
<div class="inner">
6970
<ul>

Tests/AppTests/__Snapshots__/WebpageSnapshotTests/BlogActions_Index_document.1.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ <h1>
5454
</nav>
5555
</div>
5656
</header>
57+
<p class="announcement">Swift Package Index will be temporarily unavailable on Tuesday, 23rd of June for scheduled maintenance.</p>
5758
<nav class="breadcrumbs">
5859
<div class="inner">
5960
<ul>

Tests/AppTests/__Snapshots__/WebpageSnapshotTests/BlogActions_Show_document.1.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ <h1>
5454
</nav>
5555
</div>
5656
</header>
57+
<p class="announcement">Swift Package Index will be temporarily unavailable on Tuesday, 23rd of June for scheduled maintenance.</p>
5758
<nav class="breadcrumbs">
5859
<div class="inner">
5960
<ul>

Tests/AppTests/__Snapshots__/WebpageSnapshotTests/BuildIndex_document.1.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ <h1>
6565
</nav>
6666
</div>
6767
</header>
68+
<p class="announcement">Swift Package Index will be temporarily unavailable on Tuesday, 23rd of June for scheduled maintenance.</p>
6869
<nav class="breadcrumbs">
6970
<div class="inner">
7071
<ul>

Tests/AppTests/__Snapshots__/WebpageSnapshotTests/BuildMonitorIndex_document.1.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ <h1>
6464
</nav>
6565
</div>
6666
</header>
67+
<p class="announcement">Swift Package Index will be temporarily unavailable on Tuesday, 23rd of June for scheduled maintenance.</p>
6768
<nav class="breadcrumbs">
6869
<div class="inner">
6970
<ul>

Tests/AppTests/__Snapshots__/WebpageSnapshotTests/BuildShow_document.1.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ <h1>
6565
</nav>
6666
</div>
6767
</header>
68+
<p class="announcement">Swift Package Index will be temporarily unavailable on Tuesday, 23rd of June for scheduled maintenance.</p>
6869
<nav class="breadcrumbs">
6970
<div class="inner">
7071
<ul>

Tests/AppTests/__Snapshots__/WebpageSnapshotTests/CustomCollectionShow_document.1.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ <h1>
6464
</nav>
6565
</div>
6666
</header>
67+
<p class="announcement">Swift Package Index will be temporarily unavailable on Tuesday, 23rd of June for scheduled maintenance.</p>
6768
<nav class="breadcrumbs">
6869
<div class="inner">
6970
<ul>

Tests/AppTests/__Snapshots__/WebpageSnapshotTests/ErrorPage_document.1.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ <h1>
6464
</nav>
6565
</div>
6666
</header>
67+
<p class="announcement">Swift Package Index will be temporarily unavailable on Tuesday, 23rd of June for scheduled maintenance.</p>
6768
<main>
6869
<div class="inner">
6970
<section class="error-message">

Tests/AppTests/__Snapshots__/WebpageSnapshotTests/HomeIndex_document.1.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ <h1>
5656
</nav>
5757
</div>
5858
</header>
59+
<p class="announcement">Swift Package Index will be temporarily unavailable on Tuesday, 23rd of June for scheduled maintenance.</p>
5960
<section class="search home">
6061
<div class="inner">
6162
<h3>The place to find Swift packages.</h3>

0 commit comments

Comments
 (0)