Thursday, March 26, 2020

[389-commits] [389-ds-base] branch 389-ds-base-1.4.1 updated: Issue 50975 - Revise UI branding with new minimized build

This is an automated email from the git hooks/post-receive script.

mreynolds pushed a commit to branch 389-ds-base-1.4.1
in repository 389-ds-base.

The following commit(s) were added to refs/heads/389-ds-base-1.4.1 by this push:
new 80f6dbd Issue 50975 - Revise UI branding with new minimized build
80f6dbd is described below

commit 80f6dbdce75ba74588b4912f7c44ee7d343765d0
Author: Mark Reynolds <mreynolds@redhat.com>
AuthorDate: Tue Mar 24 11:44:10 2020 -0400

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!!)
---
src/cockpit/389-console/src/css/branding.css | 3 +++
src/cockpit/389-console/src/ds.jsx | 2 +-
src/cockpit/389-console/src/index.html | 4 ++--
3 files changed, 6 insertions(+), 3 deletions(-)

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" ? (
<div className="ds-logo" hidden={pageLoadingState.state === "loading"}>
<h2 className="ds-logo-style" id="main-banner">
- 389 Directory Server Management
<div className="dropdown ds-server-action">
<select
className="btn btn-default dropdown"
diff --git a/src/cockpit/389-console/src/index.html b/src/cockpit/389-console/src/index.html
index a243e1e..1278844 100644
--- a/src/cockpit/389-console/src/index.html
+++ b/src/cockpit/389-console/src/index.html
@@ -1,13 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
- <title>389 Directory Server</title>
+ <title>Directory Server Management</title>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="../base1/cockpit.js"></script>
<link rel="stylesheet" href="../base1/patternfly.css">
<link href="css/ds.css" type="text/css" rel="stylesheet">
+ <link href="css/branding.css" type="text/css" rel="stylesheet">
</head>


@@ -16,4 +17,3 @@
<script src="index.js"></script>
</body>
</html>
-

--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
389-commits mailing list -- 389-commits@lists.fedoraproject.org
To unsubscribe send an email to 389-commits-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/389-commits@lists.fedoraproject.org

No comments:

Post a Comment