From 6a1d7851364d6c5655c2f4f1d0260a91b36afb0f Mon Sep 17 00:00:00 2001 From: Mark Reynolds Date: Mar 26 2020 18:56:39 +0000 Subject: Issue 50975 - Revise UI branding with new minimized build Description: We can no longer use the previous method of text replacement to brand the UI for downstream vs upstream builds. Instead we can use css files to set the branding, and the specfile can do a text replacement on the non-miminized css file. fixes: https://pagure.io/389-ds-base/issue/50975 Reviewed by: firstyear & mhonek (Thanks!!) --- diff --git a/src/cockpit/389-console/src/css/branding.css b/src/cockpit/389-console/src/css/branding.css new file mode 100644 index 0000000..0f6c409 --- /dev/null +++ b/src/cockpit/389-console/src/css/branding.css @@ -0,0 +1,3 @@ +#main-banner::before { + content: "389 Directory Server Management"; +} diff --git a/src/cockpit/389-console/src/ds.jsx b/src/cockpit/389-console/src/ds.jsx index c003d16..f83ce55 100644 --- a/src/cockpit/389-console/src/ds.jsx +++ b/src/cockpit/389-console/src/ds.jsx @@ -35,6 +35,7 @@ import { Button } from "patternfly-react"; import "./css/ds.css"; +import "./css/branding.css"; const staticStates = { noPackage: ( @@ -532,7 +533,6 @@ export class DSInstance extends React.Component { pageLoadingState.state !== "noPackage" ? (