diff --git a/shogun-boot/src/main/resources/templates/index.html b/shogun-boot/src/main/resources/templates/index.html index 70db9e8c..968847d4 100644 --- a/shogun-boot/src/main/resources/templates/index.html +++ b/shogun-boot/src/main/resources/templates/index.html @@ -106,9 +106,12 @@

Welcome to SHOGun

Applications

- +

@@ -176,8 +179,9 @@

Applications

: '' })); if (!keycloak.authenticated || !applications) { - document.querySelector('#app-label-visibility').hidden = false; + document.querySelector('#login-alert').hidden = false; } + const appsEl = document.querySelector('.apps'); // Create web components @@ -197,20 +201,19 @@

Applications

} }); - - if (appsEl) { - appInfos.forEach(app => { - const html = `` + - `` + - `${app.logo}` + - `` + - `${app.name}` + - `${app.description}` + - ``; - appsEl.insertAdjacentHTML('beforeend', html); - }); - } + if (appsEl) { + appInfos.forEach(app => { + const html = `` + + `` + + `${app.logo}` + + `` + + `${app.name}` + + `${app.description}` + + ``; + appsEl.insertAdjacentHTML('beforeend', html); + }); + } // Check for admin role const hasAdminRole = keycloak.hasResourceRole('admin', 'shogun-admin');