Fix problem with different date formats
[proteocache.git] / webapp / view / reportJobStatisticsOneDay.jsp
1 <%@ page language="java" contentType="text/html; charset=UTF-8"
2         pageEncoding="UTF-8"%>
3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4
5 <%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
6 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
7 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
8 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
9 <%@page import="java.util.ArrayList"%>
10
11 <html>
12 <jsp:include page="fragments/header.jsp" />
13 <body>
14         <div class="container">
15                 <jsp:include page="fragments/mainmenu.jsp" />
16                 <spring:url value="/joblog/query" var="jobquery" />
17
18 <p style="font-weight:bold;">Job statistics for ${date}</p>
19
20 <c:choose>
21         <c:when test="${results == null}">
22                 <p>No jobs found...</p>
23         </c:when>
24         <c:otherwise>
25         <p>${njobs} jobs found for the day:</p>
26         <div class="table-responsive">
27         <table class="table table-striped table-hover table-bordered">
28                 <thead>
29                         <tr>
30                                 <th style="text-align: centre">Job ID</th>
31                                 <th style="text-align: left">Protein</th>
32                         </tr>
33                 </thead>
34                 <tbody>
35                         <c:forEach items="${results}" var="res" varStatus="status">
36                                 <tr>
37                                         <td><a href="${jobquery}?IdJob=${res.id}">${res.id}</a></td>
38                                         <c:choose>
39                                         <c:when test="${res.prot == ''}">
40                                                         <td>Job with alignment</td>
41                                         </c:when>
42                                         <c:otherwise>
43                                                 <td style="text-align: left; border-buttom: dotted; font-family: monospace">${res.prot}</td>
44                                         </c:otherwise>
45                                         </c:choose>
46                                         
47                                 </tr>
48                         </c:forEach>
49                 </tbody>
50         </table>
51         </div>
52         </c:otherwise>
53 </c:choose>
54
55                 <jsp:include page="fragments/footer.jsp" />
56         </div>
57 </body>
58 </html>