You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.5 KiB
47 lines
1.5 KiB
From 2e1149a465911f292a94a21d012198a009b1403f Mon Sep 17 00:00:00 2001
|
|
From: Eugene Zamriy <ezamriy@msvsphere-os.ru>
|
|
Date: Mon, 20 Nov 2023 21:25:21 +0300
|
|
Subject: [PATCH 2/6] Show MSVSPHERE_PRETTY_NAME instead of NAME on login page
|
|
|
|
---
|
|
src/branding/msvsphere/branding.css | 4 ++--
|
|
src/ws/cockpithandlers.c | 2 +-
|
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/src/branding/msvsphere/branding.css b/src/branding/msvsphere/branding.css
|
|
index 2b87b42bc..67faf6d4b 100644
|
|
--- a/src/branding/msvsphere/branding.css
|
|
+++ b/src/branding/msvsphere/branding.css
|
|
@@ -24,7 +24,7 @@ body.login-pf {
|
|
}
|
|
|
|
#brand:before {
|
|
- content: "${NAME}";
|
|
+ content: "${MSVSPHERE_PRETTY_NAME}";
|
|
}
|
|
|
|
#index-brand {
|
|
@@ -32,5 +32,5 @@ body.login-pf {
|
|
}
|
|
|
|
#index-brand:before {
|
|
- content: "${NAME}";
|
|
+ content: "${MSVSPHERE_PRETTY_NAME}";
|
|
}
|
|
diff --git a/src/ws/cockpithandlers.c b/src/ws/cockpithandlers.c
|
|
index c866e1c15..b1b914ffa 100644
|
|
--- a/src/ws/cockpithandlers.c
|
|
+++ b/src/ws/cockpithandlers.c
|
|
@@ -287,7 +287,7 @@ build_environment (GHashTable *os_release)
|
|
* the corresponding information is not a leak.
|
|
*/
|
|
static const gchar *release_fields[] = {
|
|
- "NAME", "ID", "PRETTY_NAME", "VARIANT", "VARIANT_ID", "CPE_NAME", "ID_LIKE", "DOCUMENTATION_URL"
|
|
+ "NAME", "ID", "PRETTY_NAME", "VARIANT", "VARIANT_ID", "CPE_NAME", "ID_LIKE", "DOCUMENTATION_URL", "MSVSPHERE_PRETTY_NAME"
|
|
};
|
|
|
|
static const gchar *prefix = "\n <script>\nvar environment = ";
|
|
--
|
|
2.43.0
|
|
|