1<%-- 2 ~ Copyright (c) 2017 Google Inc. All Rights Reserved. 3 ~ 4 ~ Licensed under the Apache License, Version 2.0 (the "License"); you 5 ~ may not use this file except in compliance with the License. You may 6 ~ 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 13 ~ implied. See the License for the specific language governing 14 ~ permissions and limitations under the License. 15 --%> 16<%@ page contentType='text/html;charset=UTF-8' language='java' %> 17<%@ taglib prefix='fn' uri='http://java.sun.com/jsp/jstl/functions' %> 18<%@ taglib prefix='c' uri='http://java.sun.com/jsp/jstl/core'%> 19 20<html> 21 <%@ include file="header.jsp" %> 22 <link rel='stylesheet' href='/css/show_plan_release.css'> 23 <link rel='stylesheet' href='/css/plan_runs.css'> 24 <link rel='stylesheet' href='/css/search_header.css'> 25 <script src='https://www.gstatic.com/external_hosted/moment/min/moment-with-locales.min.js'></script> 26 <script src='js/time.js'></script> 27 <script src='js/plan_runs.js'></script> 28 <script src='js/search_header.js'></script> 29 <script type='text/javascript'> 30 $(document).ready(function() { 31 32 }); 33 </script> 34 35 <body> 36 <div class='wide container'> 37 <div class="row"> 38 <div class="col s12"> 39 <h4 id="test-plan-section-header">Test Plans</h4> 40 </div> 41 </div> 42 <div class='row' id='test-plan-green-release-container'> 43 <table class="bordered highlight"> 44 <thead> 45 <tr> 46 <th>Branch</th> 47 <th>Last Finished Build</th> 48 <th>Last Green Build</th> 49 </tr> 50 </thead> 51 52 <tbody> 53 <c:forEach var="branchList" items="${greenBuildInfo}"> 54 <tr> 55 <td> <c:out value="${branchList.key}"></c:out> </td> 56 <td> 57 <c:forEach varStatus="deviceLoop" var="deviceBuildInfo" items="${branchList.value}"> 58 <p> 59 <c:out value="${deviceBuildInfo.deviceBuildTarget}"></c:out> : 60 <c:choose> 61 <c:when test="${deviceBuildInfo.candidateBuildId eq 'No Test Results'}"> 62 <c:out value="${deviceBuildInfo.candidateBuildId}"></c:out> 63 </c:when> 64 <c:otherwise> 65 <a href="/show_plan_run?plan=${plan}&time=${deviceBuildInfo.candidateBuildIdTimestamp}"> 66 <c:out value="${deviceBuildInfo.candidateBuildId}"></c:out> 67 </a> 68 </c:otherwise> 69 </c:choose> 70 </p> 71 <c:if test="${!deviceLoop.last}"> 72 <hr/> 73 </c:if> 74 </c:forEach> 75 </td> 76 <td> 77 <c:forEach varStatus="deviceLoop" var="deviceBuildInfo" items="${branchList.value}"> 78 <p> 79 <c:choose> 80 <c:when test="${deviceBuildInfo.greenBuildId eq 'N/A'}"> 81 <c:out value="${deviceBuildInfo.greenBuildId}"></c:out> 82 </c:when> 83 <c:otherwise> 84 <a href="/show_plan_run?plan=${plan}&time=${deviceBuildInfo.greenBuildIdTimestamp}"> 85 <c:out value="${deviceBuildInfo.greenBuildId}"></c:out> 86 </a> 87 </c:otherwise> 88 </c:choose> 89 </p> 90 <c:if test="${!deviceLoop.last}"> 91 <hr/> 92 </c:if> 93 </c:forEach> 94 </td> 95 </tr> 96 </c:forEach> 97 </tbody> 98 </table> 99 </div> 100 101 </div> 102 <%@ include file="footer.jsp" %> 103 </body> 104</html> 105