com.marvelution.bamboo.plugins.sonar.tasks.actions.admin.viewSonarServerMatrix.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.
--]
[#-- @ftlvariable name="action" type="com.marvelution.bamboo.plugins.sonar.tasks.actions.admin.ViewSonarServerMatrix" --]
[#-- @ftlvariable name="" type="com.marvelution.bamboo.plugins.sonar.tasks.actions.admin.ViewSonarServerMatrix" --]
[@ui.header pageKey="sonar.global.server.matrix.title" title=true /]
[@ui.header pageKey="sonar.global.server.matrix.heading" /]
[@ww.text name='sonar.global.server.matrix.description' /]
[@ww.actionmessage /]
[@ui.clear/]
[@ui.bambooPanel]
[#if servers!?size > 0]
[#list servers as server]
${server_index + 1}
${server.name}
[#if server.description?has_content]
${server.description}
[/#if]
[/#list]
[#list buildables as build]
${build_index + 1}
[@ww.url id='editBuildConfigurationUrl' action='editBuildConfiguration' namespace='/build/admin/edit' buildKey='${build.key}'/]
[#if build.type.equals("JOB")]
[@ww.url id='chainLink' value='/browse/${build.parent.key}'/]
${build.buildName} [@ww.text name='build.partof'/] ${build.parent.name}
[#else]
${build.name}
[/#if]
[#assign serversForPlan = action.getServerMatrix().get(build.key) /]
[#list servers as server]
[#if serversForPlan.get(server.ID)]
[/#if]
[/#list]
[/#list]
[#else]
[@ui.messageBox type='warning' titleKey='sonar.global.servers.none']
[@ww.text name='sonar.global.server.matrix.none.help' /]
[/@ui.messageBox]
[/#if]
[/@ui.bambooPanel]