mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-02 08:46:38 +00:00
fix(newt-install): conditionally display Kubernetes installation info
Signed-off-by: Marc Schäfer <git@marcschaeferger.de>
This commit is contained in:
@@ -210,19 +210,21 @@ WantedBy=default.target`
|
|||||||
|
|
||||||
<div className="pt-4">
|
<div className="pt-4">
|
||||||
<p className="font-bold mb-3">{t("commands")}</p>
|
<p className="font-bold mb-3">{t("commands")}</p>
|
||||||
<p className="text-sm text-muted-foreground mb-3">
|
{platform === "kubernetes" && (
|
||||||
For more and up to date Kubernetes installation
|
<p className="text-sm text-muted-foreground mb-3">
|
||||||
information, see{" "}
|
For more and up to date Kubernetes installation
|
||||||
<a
|
information, see{" "}
|
||||||
href="https://docs.pangolin.net/manage/sites/install-kubernetes"
|
<a
|
||||||
target="_blank"
|
href="https://docs.pangolin.net/manage/sites/install-kubernetes"
|
||||||
rel="noreferrer"
|
target="_blank"
|
||||||
className="underline"
|
rel="noreferrer"
|
||||||
>
|
className="underline"
|
||||||
docs.pangolin.net/manage/sites/install-kubernetes
|
>
|
||||||
</a>
|
docs.pangolin.net/manage/sites/install-kubernetes
|
||||||
.
|
</a>
|
||||||
</p>
|
.
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
<div className="mt-2 space-y-3">
|
<div className="mt-2 space-y-3">
|
||||||
{commands.map((item, index) => {
|
{commands.map((item, index) => {
|
||||||
const commandText =
|
const commandText =
|
||||||
@@ -232,8 +234,10 @@ WantedBy=default.target`
|
|||||||
? undefined
|
? undefined
|
||||||
: item.title;
|
: item.title;
|
||||||
|
|
||||||
|
const key = `${title ?? ""}::${commandText}`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div key={index}>
|
<div key={key}>
|
||||||
{title && (
|
{title && (
|
||||||
<p className="text-sm font-medium mb-1.5">
|
<p className="text-sm font-medium mb-1.5">
|
||||||
{title}
|
{title}
|
||||||
|
|||||||
Reference in New Issue
Block a user