mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Added JS Script to pick Favicon, Title from config file (#7418)
This commit is contained in:
parent
2a56c61ade
commit
e545259bd3
2
ui/public/config.json
vendored
2
ui/public/config.json
vendored
@ -14,6 +14,8 @@
|
||||
"logo": "assets/logo.svg",
|
||||
"minilogo": "assets/mini-logo.svg",
|
||||
"banner": "assets/banner.svg",
|
||||
"loginPageTitle": "CloudStack",
|
||||
"loginPageFavicon": "assets/logo.svg",
|
||||
"error": {
|
||||
"403": "assets/403.png",
|
||||
"404": "assets/404.png",
|
||||
|
||||
12
ui/public/index.html
vendored
12
ui/public/index.html
vendored
@ -22,8 +22,8 @@
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<link rel="icon" href="<%= BASE_URL %>cloud.ico">
|
||||
<title>Apache CloudStack</title>
|
||||
<link id="favicon" rel="icon" href="<%= BASE_URL %>cloud.ico">
|
||||
<title id="title" >Apache CloudStack</title>
|
||||
<style>
|
||||
.loader {
|
||||
border: 16px solid #F3F3F3;
|
||||
@ -54,4 +54,12 @@
|
||||
<div class="loader"></div>
|
||||
</div>
|
||||
</body>
|
||||
<script type="text/javascript">
|
||||
fetch('./config.json')
|
||||
.then(response => response.json())
|
||||
.then(data => {
|
||||
document.getElementById("favicon").setAttribute("href", data.loginPageFavicon);
|
||||
document.getElementById("title").innerHTML = data.loginPageTitle;
|
||||
}).catch((err) => {});
|
||||
</script>
|
||||
</html>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user