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   <link rel='stylesheet' href='/css/show_release.css'>
     22   <%@ include file='header.jsp' %>
     23   <script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.0/jquery-ui.min.js'></script>
     24   <body>
     25     <div class='container'>
     26       <div class='row'>
     27         <div class='col s12'>
     28           <h4 id='section-header'>Test Plans</h4>
     29         </div>
     30       </div>
     31       <div class='row' id='options'>
     32         <c:forEach items='${planNames}' var='plan'>
     33           <c:choose>
     34             <c:when test="${isAdmin}">
     35               <div class="col s11 center">
     36                 <a href='/show_plan_release?plan=${plan}'>
     37                   <div class='col s12 card hoverable option valign-wrapper waves-effect'>
     38                     <span class='entry valign'>${plan}</span>
     39                   </div>
     40                 </a>
     41               </div>
     42               <div class="col s1 center btn-container" style="margin-top: 9px;">
     43                 <a href='/show_green_release?plan=${plan}' class="waves-effect waves-light btn">Green</a>
     44               </div>
     45             </c:when>
     46             <c:otherwise>
     47               <div class="col s12 center">
     48                 <a href='/show_plan_release?plan=${plan}'>
     49                   <div class='col s12 card hoverable option valign-wrapper waves-effect'>
     50                     <span class='entry valign'>${plan}</span>
     51                   </div>
     52                 </a>
     53               </div>
     54             </c:otherwise>
     55           </c:choose>
     56         </c:forEach>
     57       </div>
     58     </div>
     59     <%@ include file='footer.jsp' %>
     60   </body>
     61 </html>
     62