1%{-- 2 - Copyright 2016 SimplifyOps, Inc. (http://simplifyops.com) 3 - 4 - Licensed under the Apache License, Version 2.0 (the "License"); 5 - you may not use this file except in compliance with the License. 6 - You may obtain a copy of the License at 7 - 8 - http://www.apache.org/licenses/LICENSE-2.0 9 - 10 - Unless required by applicable law or agreed to in writing, software 11 - distributed under the License is distributed on an "AS IS" BASIS, 12 - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 - See the License for the specific language governing permissions and 14 - limitations under the License. 15 --}% 16 17<g:set var="appLogo" 18 value="${grailsApplication.config.rundeck.gui.logo ?: g.message(code: 'main.app.logo')}"/> 19<g:set var="appLogoHires" 20 value="${grailsApplication.config.rundeck.gui.logoHires ?: g.message(code: 'main.app.logo.hires')}"/> 21<g:set var="appLogoW" 22 value="${grailsApplication.config.rundeck.gui.'logo-width' ?: g.message(code: 'main.app.logo.width')}"/> 23<g:set var="appLogoH" 24 value="${grailsApplication.config.rundeck.gui.'logo-height' ?: g.message(code: 'main.app.logo.height')}"/> 25<g:if test="${session[org.springframework.web.servlet.i18n.SessionLocaleResolver.LOCALE_SESSION_ATTRIBUTE_NAME]?.language=='de'}"> 26 <g:set var="customCss" value=".navbar-brand,.navbar-default{border-radius: 0 0 10px 10px; }"/> 27</g:if> 28 29<style type="text/css"> 30 31 .rdicon.app-logo, .nodedetail.server .nodedesc, .node_entry.server .nodedesc{ 32 width: ${enc(rawtext:appLogoW)}; 33 height: ${enc(rawtext:appLogoH)}; 34 vertical-align: baseline; 35 } 36 37 .rdicon.app-logo, .nodedetail.server .nodedesc, .node_entry.server .nodedesc { 38 background-image: url("${resource(dir: 'images', file: appLogo)}"); 39 background-repeat: no-repeat; 40 } 41 42 @media 43 only screen and (-webkit-min-device-pixel-ratio: 2), 44 only screen and ( min--moz-device-pixel-ratio: 2), 45 only screen and ( -o-min-device-pixel-ratio: 2/1), 46 only screen and ( min-device-pixel-ratio: 2), 47 only screen and ( min-resolution: 192dpi), 48 only screen and ( min-resolution: 2dppx) { 49 .rdicon.app-logo, .nodedetail.server .nodedesc, .node_entry.server .nodedesc { 50 background-image: url("${resource(dir: 'images', file: appLogoHires)}"); 51 background-size: ${ enc(rawtext:appLogoW) } ${ enc(rawtext:appLogoH) }; 52 } 53 } 54 55 <g:if test="${grailsApplication.config.rundeck.gui.navbar.background}"> 56 .navbar-overrides { 57 background: ${grailsApplication.config.rundeck.gui.navbar.background}; 58 } 59 </g:if> 60 61 ${enc(rawtext:customCss)} 62</style> 63