1<%--
2  ~ Copyright (c) 2018 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-suite-section-header">Test Suites</h4>
40        </div>
41      </div>
42
43      <div class='row' id='test-plan-green-release-container'>
44        <table class="bordered highlight">
45          <thead>
46          <tr>
47            <th>Branch</th>
48            <th>Last Finished Build</th>
49            <th>Last Green Build</th>
50          </tr>
51          </thead>
52
53          <tbody>
54          <c:forEach var="branchList" items="${greenBuildInfo}">
55            <tr>
56              <td> <c:out value="${branchList.key}"></c:out> </td>
57              <td>
58                <c:forEach varStatus="deviceLoop" var="deviceBuildInfo" items="${branchList.value}">
59                  <p>
60                    <c:out value="${deviceBuildInfo.deviceBuildTarget}"></c:out> :
61                    <c:choose>
62                      <c:when test="${deviceBuildInfo.candidateBuildId eq 'No Test Results'}">
63                        <c:out value="${deviceBuildInfo.candidateBuildId}"></c:out>
64                      </c:when>
65                      <c:otherwise>
66                        <c:out value="${deviceBuildInfo.candidateBuildId}"></c:out>
67                      </c:otherwise>
68                    </c:choose>
69                  </p>
70                  <c:if test="${!deviceLoop.last}">
71                    <hr/>
72                  </c:if>
73                </c:forEach>
74              </td>
75              <td>
76                <c:forEach varStatus="deviceLoop" var="deviceBuildInfo" items="${branchList.value}">
77                  <p>
78                    <c:choose>
79                      <c:when test="${deviceBuildInfo.greenBuildId eq 'N/A'}">
80                        <c:out value="${deviceBuildInfo.greenBuildId}"></c:out>
81                      </c:when>
82                      <c:otherwise>
83                        <c:out value="${deviceBuildInfo.greenBuildId}"></c:out>
84                      </c:otherwise>
85                    </c:choose>
86                  </p>
87                  <c:if test="${!deviceLoop.last}">
88                    <hr/>
89                  </c:if>
90                </c:forEach>
91              </td>
92            </tr>
93          </c:forEach>
94          </tbody>
95        </table>
96      </div>
97
98    </div>
99    <%@ include file="footer.jsp" %>
100  </body>
101</html>
102