update path to some dynamic pages
[proteocache.git] / webapp / view / reports / JobStatisticsOneDay.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/jobsoneday/results?date=${date}&status=${status}" var="the_query" />
15                 <spring:url value="/sequence/results" var="sequence_query" />
16
17         <ul class="nav navbar-nav navbar-right">
18                 <li>
19                 <a href="${the_query}" class="btn btn-default active">Reload</a>
20                 </li>
21         </ul>
22
23         <div class="panel panel-default">
24         <div class="panel-heading">
25                 <p style="font-weight:bold;">Job statistics for ${date}</p>
26         </div>
27         <div class="panel-body">
28
29         <c:choose>
30                 <c:when test="${results == null}">
31                         <p>No jobs found...</p>
32                 </c:when>
33                 <c:otherwise>
34                 <p>${njobs} jobs found for the day:</p>
35                 <div class="table-responsive">
36                 <table class="table table-striped table-hover table-bordered">
37                 <thead>
38                         <tr>
39                                 <th style="text-align: centre">Job ID</th>
40                                 <th style="text-align: left">Protein</th>
41                         </tr>
42                 </thead>
43                 <tbody>
44                         <c:forEach items="${results.jobidAndSeq}" var="res" varStatus="status">
45                                 <tr>
46                                         <td><a href="${job_query}?IdJob=${res.key}">${res.key}</a></td>
47                                         <c:choose>
48                                         <c:when test="${res.value == ''}">
49                                                         <td>Job with alignment</td>
50                                         </c:when>
51                                         <c:otherwise>
52                                                 <td style="text-align: left; border-buttom: dotted; font-family: monospace">
53                                                 <!-- ${res.value}-->
54                                                 <a title="Click to view all jobs" href="${sequence_query}?sequence=${res.value}&searchtype=whole">
55                                                 <script>
56                                                         document.write(shorten('${res.value}', 108));
57                                                 </script>
58                                                 </a>
59                                                 </td>
60                                         </c:otherwise>
61                                         </c:choose>
62                                         
63                                 </tr>
64                         </c:forEach>
65                 </tbody>
66                 </table>
67                 </div>
68                 </c:otherwise>
69         </c:choose>
70         </div>
71         </div>
72
73         <jsp:include page="../fragments/footer.jsp" />
74         </div>
75 </body>
76 </html>