Skip to content

Commit 95b3b2e

Browse files
committed
replace top banner with a message about the cpan mirror outage
1 parent 2602120 commit 95b3b2e

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

root/base.tx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
<link rel="shortcut icon" href="/static/icons/favicon.ico">
2323
<link rel="apple-touch-icon" sizes="152x152" href="/static/icons/apple-touch-icon.png">
2424
<link rel="search" href="/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
25-
<script async src="https://perl-ads.perlhacks.com/perl-ads.js"></script>
2625
<script async src="https://www.googletagmanager.com/gtag/js?id=G-6B2JCQSHJE"></script>
2726
%% block opengraph -> { }
2827
</head>
@@ -118,7 +117,13 @@
118117
</ul>
119118
</nav>
120119
<div class="page-content [% block page_content_class -> { } %]">
121-
<div id="perl-ad-target" class="top-notify-banner perl-ad-target">
120+
<div class="top-notify-banner alert-banner">
121+
<p>
122+
<i class="fa-solid fa-triangle-exclamation"></i>
123+
There is an ongoing outage on the primary CPAN mirror. It is
124+
possible to work around the issue by <a href="/about/mirror">using
125+
MetaCPAN as a mirror</a>.
126+
</p>
122127
</div>
123128
<nav class="sidebar">
124129
%% block left_nav -> {

root/static/less/nav.less

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,14 @@
2828
color: #c0d2e4;
2929
text-decoration: underline;
3030
}
31+
32+
p:last-child {
33+
margin-bottom: 0;
34+
}
35+
36+
&.alert-banner {
37+
background-color: #c00;
38+
}
3139
}
3240

3341
.navbar {

0 commit comments

Comments
 (0)