com.marvelution.bamboo.plugins.sonar.tasks.actions.admin.viewSonarServers.ftl Maven / Gradle / Ivy
[#--
~ Licensed to Marvelution under one or more contributor license
~ agreements. See the NOTICE file distributed with this work
~ for additional information regarding copyright ownership.
~ Marvelution licenses this file to you under the Apache License,
~ Version 2.0 (the "License"); you may not use this file except
~ in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
--]
[@ui.header pageKey="sonar.global.servers.title" title=true /]
[#include "serverRunningWarning.ftl"]
[@ui.header pageKey="sonar.global.servers.heading" /]
[@ww.text name='sonar.global.servers.description' /]
[@ww.actionmessage /]
[@ui.clear/]
[@ui.bambooPanel titleKey='sonar.global.servers.list.heading']
[#if sonarServers!?size > 0]
[@ww.text name='sonar.global.servers.list.heading.server' /]
[@ww.text name='sonar.global.servers.list.heading.configuration' /]
[@ww.text name='sonar.global.servers.list.heading.operations' /]
[#foreach server in sonarServers]
${server.name?html}
[#if server.description?has_content]
${server.description}
[/#if]
[@ww.text name='sonar.global.servers.list.host' /]: ${server.host}
[#if server.username?has_content][@ww.text name='sonar.global.servers.list.username' /]: ${server.username}[#else][@ww.text name='sonar.global.servers.list.anonymous' /][/#if]
[#if server.getJDBCResource()!?has_content]
[#assign resource = server.getJDBCResource() /]
[@ww.text name='sonar.global.servers.list.jdbc.details' /]:
[@ww.text name='sonar.global.servers.list.jdbc.url' /]: ${resource.url}
[@ww.text name='sonar.global.servers.list.jdbc.driver' /]: ${resource.driver}
[@ww.text name='sonar.global.servers.list.jdbc.username' /]: ${resource.username}
[#else]
[@ww.text name='sonar.global.servers.list.jdbc.default' /]
[/#if]
[@ww.text name='sonar.global.edit.server' /]
| [@ww.text name='sonar.global.delete.server' /]
[/#foreach]
[#else]
[@ui.messageBox type='warning' titleKey='sonar.global.servers.none']
[@ww.text name='sonar.global.servers.none.help' /]
[/@ui.messageBox]
[/#if]
[/@ui.bambooPanel]