0f1839d093d87bf62602e922ac52ca2eaa7e1445
[proteocache.git] / webapp / view / ReportJobsOfOneDay.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/bodyHeader.jsp" />
16                 <spring:url value="/joblog/query" var="jobquery" />
17
18 <h3>Job statistics for ${date}</h3>
19
20 <c:choose>
21         <c:when test="${results == null}">
22                 <h3>No jobs for the day...</h3>
23         </c:when>
24         <c:otherwise>
25         <h3>${njobs} jobs found for the day:</h3>
26         <table border="1" style="border-collapse: collapse; white-space: nowrap">
27                 <thead>
28                         <tr>
29                                 <th style="text-align: centre">Job ID</th>
30                                 <th style="text-align: left">Protein</th>
31                         </tr>
32                 </thead>
33                 <tbody>
34                         <c:forEach items="${results}" var="res" varStatus="status">
35                                 <tr>
36                                         <td><a href="${jobquery}?IdJob=${res.id}">${res.id}</a></td>
37                                         <c:choose>
38                                         <c:when test="${res.prot == ''}">
39                                                         <td>Job with alignment</td>
40                                         </c:when>
41                                         <c:otherwise>
42                                                 <td style="text-align: left; border-buttom: dotted; font-family: monospace">${res.prot}</td>
43                                         </c:otherwise>
44                                         </c:choose>
45                                         
46                                 </tr>
47                         </c:forEach>
48                 </tbody>
49         </table>
50         </c:otherwise>
51 </c:choose>
52
53                 <jsp:include page="fragments/footer.jsp" />
54         </div>
55 </body>
56 </html>