1 <%-- 2 ~ Copyright (c) 2016 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/dashboard_main.css'> 22 <%@ include file="header.jsp" %> 23 <body> 24 <div class='container'> 25 <div class='row' id='options'> 26 <c:choose> 27 <c:when test="${not empty error}"> 28 <div id="error-container" class="row card"> 29 <div class="col s12 center-align"> 30 <h5>${error}</h5> 31 </div> 32 </div> 33 </c:when> 34 <c:otherwise> 35 <div class='col s12'> 36 <h4 id='section-header'>${headerLabel}</h4> 37 </div> 38 <c:forEach items='${testNames}' var='test'> 39 <a href='/show_table?testName=${test.name}'> 40 <div class='col s12 card hoverable option valign-wrapper waves-effect'> 41 <span class='entry valign'>${test.name} 42 <c:if test='${test.failCount > 0}'> 43 <span class='indicator red center'> 44 ${test.failCount} 45 </span> 46 </c:if> 47 </span> 48 </div> 49 </a> 50 </c:forEach> 51 </c:otherwise> 52 </c:choose> 53 </div> 54 <div class='row center-align'> 55 <a href='${buttonLink}' id='show-button' class='btn waves-effect red'>${buttonLabel} 56 <i id='show-button-arrow' class='material-icons right'>${buttonIcon}</i> 57 </a> 58 </div> 59 </div> 60 <c:if test='${not showAll}'> 61 <div id='edit-button-wrapper' class='fixed-action-btn'> 62 <a href='/show_preferences' id='edit-button' class='btn-floating btn-large red waves-effect'> 63 <i class='large material-icons'>mode_edit</i> 64 </a> 65 </div> 66 </c:if> 67 <%@ include file="footer.jsp" %> 68 </body> 69 </html> 70