blob: c08fa1088ca284e656d52e3bc0841c657337bbf1 [file] [log] [blame]
<%--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF 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.
--%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="http://www.extremecomponents.org" prefix="ec" %>
<html>
<s:i18n name="localization.Continuum">
<head>
<title><s:text name="buildDefinition.templates.page.title"/></title>
</head>
<body>
<div>
<h3>
<s:text name="buildDefinition.templates.section.title"/>
</h3>
<ec:table items="templates"
var="template"
autoIncludeParameters="false"
showExports="false"
showPagination="false"
showStatusBar="false"
filterable="false"
sortable="false">
<ec:row>
<ec:column property="name" title="buildDefinition.template.name"/>
<ec:column property="editAction" title="&nbsp;" width="1%">
<s:url id="editUrl" action="editBuildDefinitionTemplate" namespace="/">
<s:param name="buildDefinitionTemplate.id" value="#attr['template'].id"/>
</s:url>
<s:a href="%{editUrl}"><img src="<s:url value='/images/edit.gif' includeParams="none"/>" alt="<s:text name='edit'/>" title="<s:text name='edit'/>" border="0"></s:a>
</ec:column>
<!-- TODO list attached buildDefs -->
<ec:column property="deleteAction" title="&nbsp;" width="1%">
<s:if test="#attr['template'].continuumDefault">
<img src="<s:url value='/images/delete_disabled.gif' includeParams="none"/>" alt="<s:text name='disabled'/>" title="<s:text name='disabled'/>" border="0" />
</s:if>
<s:else>
<s:set var="tname" value="'delTemplateToken' + #attr['template'].id" scope="page"/>
<s:token name="%{#attr['tname']}"/>
<s:url id="deleteUrl" action="deleteDefinitionTemplate" namespace="/">
<s:param name="buildDefinitionTemplate.id" value="#attr['template'].id"/>
<s:param name="buildDefinitionTemplate.name" value="#attr['template'].name"/>
<s:param name="struts.token.name" value="#attr['tname']" />
<s:param name="%{#attr['tname']}" value="#session['struts.tokens.' + #attr['tname']]"/>
</s:url>
<s:a href="%{deleteUrl}"><img src="<s:url value='/images/delete.gif' includeParams="none"/>" alt="<s:text name='delete'/>" title="<s:text name='delete'/>" border="0"></s:a>
</s:else>
</ec:column>
</ec:row>
</ec:table>
<div class="functnbar3">
<s:form action="buildDefinitionTemplate" method="post">
<s:submit value="%{getText('add')}" theme="simple"/>
</s:form>
</div>
<h3>
<s:text name="buildDefinition.templates.buildDefinitions.section.title"/>
</h3>
<ec:table items="buildDefinitionSummaries"
var="buildDefinitionSummary"
autoIncludeParameters="false"
showExports="false"
showPagination="false"
showStatusBar="false"
filterable="false"
sortable="false">
<ec:row>
<ec:column property="goals" title="buildDefinition.template.buildDefinition.goals"/>
<ec:column property="arguments" title="buildDefinition.template.buildDefinition.arguments"/>
<!-- change the label for shell -->
<ec:column property="buildFile" title="buildDefinition.template.buildDefinition.buildFile"/>
<ec:column property="scheduleName" title="buildDefinition.template.buildDefinition.schedule"/>
<ec:column property="profileName" title="buildDefinition.template.buildDefinition.profile"/>
<ec:column property="isBuildFresh" title="buildDefinition.template.buildDefinition.buildFresh"/>
<ec:column property="isDefault" title="buildDefinition.template.buildDefinition.default"/>
<ec:column property="description" title="buildDefinition.template.buildDefinition.description"/>
<ec:column property="type" title="buildDefinition.template.buildDefinition.type"/>
<ec:column property="editAction" title="&nbsp;" width="1%">
<s:url id="editUrl" action="editBuildDefinitionAsTemplate" namespace="/">
<s:param name="buildDefinition.id" value="#attr['buildDefinitionSummary'].id"/>
</s:url>
<s:a href="%{editUrl}"><img src="<s:url value='/images/edit.gif' includeParams="none"/>" alt="<s:text name='edit'/>" title="<s:text name='edit'/>" border="0"></s:a>
</ec:column>
<ec:column property="deleteAction" title="&nbsp;" width="1%">
<s:if test="#attr['buildDefinitionSummary'].isDefault">
<img src="<s:url value='/images/delete_disabled.gif' includeParams="none"/>" alt="<s:text name='disabled'/>" title="<s:text name='disabled'/>" border="0" />
</s:if>
<s:else>
<s:set var="tname" value="'delBuildDefToken' + #attr['buildDefinitionSummary'].id" scope="page"/>
<s:token name="%{#attr['tname']}" />
<s:url id="deleteUrl" action="deleteBuildDefinitionAsTemplate" namespace="/">
<s:param name="buildDefinition.id" value="#attr['buildDefinitionSummary'].id"/>
<s:param name="buildDefinition.description" value="#attr['buildDefinitionSummary'].description"/>
<s:param name="struts.token.name" value="#attr['tname']" />
<s:param name="%{#attr['tname']}" value="#session['struts.tokens.' + #attr['tname']]"/>
</s:url>
<s:a href="%{deleteUrl}"><img src="<s:url value='/images/delete.gif' includeParams="none"/>" alt="<s:text name='delete'/>" title="<s:text name='delete'/>" border="0"></s:a>
</s:else>
</ec:column>
</ec:row>
</ec:table>
<div class="functnbar3">
<s:form action="buildDefinitionAsTemplate_input" method="post">
<s:submit value="%{getText('add')}" theme="simple"/>
</s:form>
</div>
</div>
</body>
</s:i18n>
</html>