| <%-- |
| ~ 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" %> |
| <%@ taglib uri="http://plexus.codehaus.org/redback/taglib-1.0" prefix="redback" %> |
| |
| <html> |
| <s:i18n name="localization.Continuum"> |
| <head> |
| <title><s:text name="buildResults.page.title"/></title> |
| <meta http-equiv="refresh" content="300"/> |
| </head> |
| <body> |
| <div id="h3"> |
| |
| <jsp:include page="/WEB-INF/jsp/navigations/ProjectMenu.jsp"> |
| <jsp:param name="tab" value="buildResults"/> |
| </jsp:include> |
| |
| <h3> |
| <s:text name="buildResults.section.title"> |
| <s:param><s:property value="project.name"/></s:param> |
| </s:text> |
| </h3> |
| |
| <s:if test="hasActionErrors()"> |
| <div class="errormessage"> |
| <s:actionerror/> |
| </div> |
| </s:if> |
| <s:if test="hasActionMessages()"> |
| <div class="warningmessage"> |
| <s:actionmessage/> |
| </div> |
| </s:if> |
| |
| <%@ include file="buildResultsPager.jspf" %> |
| <s:form id="buildResultsForm" action="removeBuildResults" theme="simple"> |
| <s:token/> |
| <s:set name="buildResults" value="buildResults" scope="request"/> |
| <s:hidden name="projectGroupId"/> |
| <s:hidden name="projectId"/> |
| <ec:table items="buildResults" |
| var="buildResult" |
| autoIncludeParameters="false" |
| showExports="false" |
| showPagination="false" |
| showStatusBar="false" |
| filterable="false" |
| sortable="false"> |
| <ec:row highlightRow="true"> |
| <redback:ifAuthorized permission="continuum-modify-group" resource="${projectGroupName}"> |
| <ec:column alias="selectedBuildResults" title=" " style="width:5px" filterable="false" sortable="false" headerCell="selectAll"> |
| <input type="checkbox" name="selectedBuildResults" value="${buildResult.id}" /> |
| </ec:column> |
| </redback:ifAuthorized> |
| <ec:column property="buildNumberIfNotZero" title="buildResults.buildNumber"> |
| <s:property value="#attr.buildResult.buildNumber"/> |
| </ec:column> |
| <ec:column property="state" headerStyle="text-align: center;" style="text-align: center;" title="buildResults.result" cell="org.apache.maven.continuum.web.view.buildresults.StateCell"/> |
| <ec:column property="trigger" title="buildResult.trigger"> |
| <s:if test="#attr.buildResult.trigger == 1"> |
| <s:text name="buildResult.trigger.1"/> |
| </s:if> |
| <s:else> |
| <s:text name="buildResult.trigger.0"/> |
| </s:else> |
| </ec:column> |
| <ec:column property="duration" title="buildResults.duration"> |
| <s:if test="#attr.buildResult.endTime > 0"> |
| <s:property value="#attr.buildResult.durationTime"/> |
| </s:if> |
| <s:else> |
| <s:text name="buildResults.startedSince"/> : <s:property value="#attr.buildResult.elapsedTime"/> |
| </s:else> |
| </ec:column> |
| <ec:column property="startTime" title="buildResults.startTime" cell="date" format="yyyy-MM-dd HH:mm z"/> |
| <ec:column property="endTime" title="buildResults.endTime" cell="date" format="yyyy-MM-dd HH:mm z"/> |
| <ec:column property="buildDefinition.description" title="buildResults.buildDefinition.description" /> |
| </ec:row> |
| </ec:table> |
| <s:if test="buildResults.size() > 0"> |
| <div class="functnbar3"> |
| <table> |
| <tbody> |
| <tr> |
| <td> |
| <redback:ifAuthorized permission="continuum-modify-group" resource="${projectGroupName}"> |
| <input type="button" name="delete-project" value="<s:text name="delete"/>" onclick="document.forms.buildResultsForm.submit();" /> |
| </redback:ifAuthorized> |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| </s:if> |
| </s:form> |
| <%@ include file="buildResultsPager.jspf" %> |
| </div> |
| </body> |
| </s:i18n> |
| </html> |