82a3defc7ac4556865d15fb457e605ea3fc71fc2
[proteocache.git] / webapp / view / reportJobStatisticsOneDay.jsp
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
3 <%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
4 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
5 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
6 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
7
8 <html>
9 <jsp:include page="fragments/header.jsp" />
10 <body>
11         <div class="container">
12                 <jsp:include page="fragments/mainmenu.jsp" />
13                 <spring:url value="/job/results" var="job_query" />
14                 <spring:url value="/stat/onedaystat?date=${date}&status=${status}" var="the_query" />
15
16         <ul class="nav navbar-nav navbar-right">
17                 <li>
18                 <a href="${the_query}" class="btn btn-default active">Reload</a>
19                 </li>
20         </ul>
21
22         <div class="panel panel-default">
23         <div class="panel-heading">
24                 <p style="font-weight:bold;">Job statistics for ${date}</p>
25         </div>
26         <div class="panel-body">
27
28         <c:choose>
29                 <c:when test="${results == null}">
30                         <p>No jobs found...</p>
31                 </c:when>
32                 <c:otherwise>
33                 <p>${njobs} jobs found for the day:</p>
34                 <div class="table-responsive">
35                 <table class="table table-striped table-hover table-bordered">
36                 <thead>
37                         <tr>
38                                 <th style="text-align: centre">Job ID</th>
39                                 <th style="text-align: left">Protein</th>
40                         </tr>
41                 </thead>
42                 <tbody>
43                         <c:forEach items="${results.jobidAndSeq}" var="res" varStatus="status">
44                                 <tr>
45                                         <td><a href="${job_query}?IdJob=${res.key}">${res.key}</a></td>
46                                         <c:choose>
47                                         <c:when test="${res.value == ''}">
48                                                         <td>Job with alignment</td>
49                                         </c:when>
50                                         <c:otherwise>
51                                                 <td style="text-align: left; border-buttom: dotted; font-family: monospace">${res.value}</td>
52                                         </c:otherwise>
53                                         </c:choose>
54                                         
55                                 </tr>
56                         </c:forEach>
57                 </tbody>
58                 </table>
59                 </div>
60                 </c:otherwise>
61         </c:choose>
62         </div>
63         </div>
64
65         <jsp:include page="fragments/footer.jsp" />
66         </div>
67 </body>
68 </html>