Home | History | Annotate | Download | only in jsp
      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       var search;
     31       $(document).ready(function() {
     32 
     33       });
     34   </script>
     35 
     36   <body>
     37     <div class='wide container'>
     38       <div class='row' id='release-container'>
     39         <table class="bordered highlight">
     40           <thead>
     41             <tr>
     42               <th>Branch</th>
     43               <th>Last Finished Build</th>
     44               <th>Last Green Build</th>
     45             </tr>
     46           </thead>
     47 
     48           <tbody>
     49           <c:forEach var="branchList" items="${greenBuildInfo}">
     50             <tr>
     51               <td> <c:out value="${branchList.key}"></c:out> </td>
     52               <td>
     53                 <c:forEach varStatus="deviceLoop" var="deviceBuildInfo" items="${branchList.value}">
     54                   <p>
     55                     <c:out value="${deviceBuildInfo.deviceBuildTarget}"></c:out> :
     56                     <c:choose>
     57                       <c:when test="${deviceBuildInfo.candidateBuildId eq 'No Test Results'}">
     58                         <c:out value="${deviceBuildInfo.candidateBuildId}"></c:out>
     59                       </c:when>
     60                       <c:otherwise>
     61                         <a href="/show_plan_run?plan=${plan}&time=${deviceBuildInfo.candidateBuildIdTimestamp}">
     62                           <c:out value="${deviceBuildInfo.candidateBuildId}"></c:out>
     63                         </a>
     64                       </c:otherwise>
     65                     </c:choose>
     66                   </p>
     67                   <c:if test="${!deviceLoop.last}">
     68                     <hr/>
     69                   </c:if>
     70                 </c:forEach>
     71               </td>
     72               <td>
     73                 <c:forEach varStatus="deviceLoop" var="deviceBuildInfo" items="${branchList.value}">
     74                   <p>
     75                     <c:choose>
     76                       <c:when test="${deviceBuildInfo.greenBuildId eq 'N/A'}">
     77                         <c:out value="${deviceBuildInfo.greenBuildId}"></c:out>
     78                       </c:when>
     79                       <c:otherwise>
     80                         <a href="/show_plan_run?plan=${plan}&time=${deviceBuildInfo.greenBuildIdTimestamp}">
     81                           <c:out value="${deviceBuildInfo.greenBuildId}"></c:out>
     82                         </a>
     83                       </c:otherwise>
     84                     </c:choose>
     85                   </p>
     86                   <c:if test="${!deviceLoop.last}">
     87                     <hr/>
     88                   </c:if>
     89                 </c:forEach>
     90               </td>
     91             </tr>
     92           </c:forEach>
     93           </tbody>
     94         </table>
     95       </div>
     96     </div>
     97     <%@ include file="footer.jsp" %>
     98   </body>
     99 </html>
    100