Skip to content

Commit 4ebe9ab

Browse files
authored
Add dismissible banner shortcode (SeleniumHQ#898)
Add log4j vulnerability banner [deploy site]
1 parent fe91616 commit 4ebe9ab

File tree

6 files changed

+32
-11
lines changed

6 files changed

+32
-11
lines changed

website_and_docs/content/_index.en.html

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
</div>
1515
{{< /blocks/cover >}}
1616

17+
{{< dismissible-banner title="CVE-2021-45105 Log4j Vulnerability" >}}
18+
<em>Note</em>: Selenium does <strong>not</strong> use Log4j, thus is unaffected by <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-45105">CVE-2021-45105</a>.
19+
{{< /dismissible-banner >}}
20+
1721
{{< getting-started color="100" height="auto" title="Getting Started" >}}
1822

1923
{{% getting-started-item icon="icons/webdriver.svg" title="Selenium WebDriver" color="selenium-webdriver" url="/documentation/webdriver/" url_text="Read more" %}}

website_and_docs/content/_index.ja.html

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
</div>
1515
{{< /blocks/cover >}}
1616

17+
{{< dismissible-banner title="CVE-2021-45105 Log4j Vulnerability" >}}
18+
<em>Note</em>: Selenium does <strong>not</strong> use Log4j, thus is unaffected by <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-45105">CVE-2021-45105</a>.
19+
{{< /dismissible-banner >}}
20+
1721
{{< language-alert locale="ja" language="Japanese" >}}
1822

1923
{{< getting-started color="100" height="auto" title="Getting Started" >}}

website_and_docs/content/_index.other.html

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
</div>
1515
{{< /blocks/cover >}}
1616

17+
{{< dismissible-banner title="CVE-2021-45105 Log4j Vulnerability" >}}
18+
<em>Note</em>: Selenium does <strong>not</strong> use Log4j, thus is unaffected by <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-45105">CVE-2021-45105</a>.
19+
{{< /dismissible-banner >}}
20+
1721
<div class="row td-box--200 justify-content-center">
1822
<div class="alert alert-orange bg-transparent col-6 pl-lg-5 my-4 alert-dismissible fade show" role="alert">
1923
<h2 class="alert-heading pb-3 text-center">Welcome!</h2>

website_and_docs/content/_index.pt-br.html

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
</div>
1515
{{< /blocks/cover >}}
1616

17+
{{< dismissible-banner title="CVE-2021-45105 Log4j Vulnerability" >}}
18+
<em>Note</em>: Selenium does <strong>not</strong> use Log4j, thus is unaffected by <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-45105">CVE-2021-45105</a>.
19+
{{< /dismissible-banner >}}
20+
1721
{{< language-alert locale="pt-br" language="Portuguese" >}}
1822

1923
{{< getting-started color="100" height="auto" title="Getting Started" >}}

website_and_docs/content/_index.zh-cn.html

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
</div>
1515
{{< /blocks/cover >}}
1616

17+
{{< dismissible-banner title="CVE-2021-45105 Log4j Vulnerability" >}}
18+
<em>Note</em>: Selenium does <strong>not</strong> use Log4j, thus is unaffected by <a href="https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-45105">CVE-2021-45105</a>.
19+
{{< /dismissible-banner >}}
20+
1721
{{< language-alert locale="zh-cn" language="Chinese" >}}
1822

1923
{{< getting-started color="100" height="auto" title="Getting Started" >}}

website_and_docs/layouts/partials/dismissible-banner.html renamed to website_and_docs/layouts/shortcodes/dismissible-banner.html

+12-11
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
<div class="row td-box--200 justify-content-center">
22
<div class="alert alert-orange bg-transparent col-6 pl-lg-5 my-4 alert-dismissible fade show"
3-
role="alert" id="banner-blm">
4-
<h2 class="alert-heading pb-3 text-center">
5-
<strong>BLACK LIVES MATTER</strong>
6-
</h2>
3+
role="alert" id="dismissible-banner">
4+
{{ with .Get "title" }}
5+
<h2 class="alert-heading pb-3 text-center">
6+
{{ . }}
7+
</h2>
8+
{{ end }}
79
<div class="w-100">
8-
<h3>
9-
In solidarity, we ask that you consider financially supporting efforts such as
10-
<a target='_blank' href="https://support.eji.org/give/153413/#!/donation/checkout">The Equal Justice Initiative</a>,
11-
<a target='_blank' href="https://www.naacpldf.org/">NAACP Legal Defense and Education Fund</a>,
12-
or your local civil rights charity.
10+
{{ if eq .Page.File.Ext "md" }}
11+
{{ .Inner | markdownify }}
12+
{{ else }}
13+
{{ .Inner | htmlUnescape | safeHTML }}
14+
{{ end }}
1315
</h3>
1416
</div>
1517
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
@@ -32,8 +34,7 @@ <h3>
3234
localStorage.setItem(config.id, Date.now());
3335
return banner.parentElement.removeChild(banner);
3436
});
35-
})({ "id": "banner-blm", "duration": "" });
37+
})({ "id": "dismissible-banner", "duration": "" });
3638
</script>
37-
3839
</div>
3940
</div>

0 commit comments

Comments
 (0)