config: allow admins to configure global footer html

Fixes #452

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2020-06-24 19:41:22 +05:30
parent 1a3e659958
commit d6f6487813
2 changed files with 6 additions and 2 deletions

View File

@ -2,6 +2,7 @@
"apiBase": "/client/api", "apiBase": "/client/api",
"docBase": "http://docs.cloudstack.apache.org/en/latest", "docBase": "http://docs.cloudstack.apache.org/en/latest",
"appTitle": "CloudStack", "appTitle": "CloudStack",
"footer": "Licensed under the <a href='http://www.apache.org/licenses/' target='_blank'>Apache License</a>, Version 2.0.",
"logo": "assets/logo.svg", "logo": "assets/logo.svg",
"banner": "assets/banner.svg", "banner": "assets/banner.svg",
"error": { "error": {

View File

@ -17,7 +17,10 @@
<template> <template>
<div class="footer"> <div class="footer">
<div class="links"> <div class="line">
<span v-html="$config.footer" />
</div>
<div class="line" v-if="$store.getters.userInfo.roletype === 'Admin'">
CloudStack {{ $store.getters.features.cloudstackversion }} CloudStack {{ $store.getters.features.cloudstackversion }}
<a-divider type="vertical" /> <a-divider type="vertical" />
Primate {{ $store.getters.version }} Primate {{ $store.getters.version }}
@ -46,7 +49,7 @@ export default {
margin: 48px 0 24px; margin: 48px 0 24px;
text-align: center; text-align: center;
.links { .line {
margin-bottom: 8px; margin-bottom: 8px;
a { a {