0d87c6e6a476a7b863e9db50a2fa29bfdb14504e
[proteocache.git] / webapp / view / reportIP.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="jobqueryservlet" />
14
15         <div class="panel panel-default">
16         <div class="panel-heading">
17                 <p style="font-weight:bold;">Jobs executed from ${ip}</p>
18         </div>
19         <div class="panel-body">
20
21                 <c:choose>
22                         <c:when test="${results == null}">
23                                 <p>No jobs found...</p>
24                         </c:when>
25                         <c:otherwise>
26                                 <p>${njobs} jobs found:</p>
27                                 <div class="table-responsive">
28                                         <table class="table table-striped table-hover table-bordered">
29                                                 <thead>
30                                                         <tr>
31                                                                 <th style="text-align: centre">ID</th>
32                                                                 <th style="text-align: left">Date</th>
33                                                                 <th style="text-align: left">Sequence</th>
34                                                         </tr>
35                                                 </thead>
36                                                 <tbody>
37                                                         <c:forEach items="${results.mainInfo}" var="res" varStatus="status">
38                                                                 <tr>
39                                                                         <td><a href="${jobqueryservlet}?IdJob=${res.key}&Search=Search">${res.key}</a></td>
40                                                                         
41                                                                         <c:forEach items="${res.value}" var="info" varStatus="status">
42                                                                                 <c:if test="${status.first}">
43                                                                                         <td style="text-align: left; border-buttom: dotted; font-family: monospace">${info}</td>
44                                                                                 </c:if>
45                                                                                  <c:if test="${!status.first}">
46                                                                                         <c:choose>
47                                                                                         <c:when test="${info==''}">
48                                                                                                 <td style="text-align: left; border-buttom: dotted; font-family: monospace">Alignment job</td>
49                                                                                         </c:when>
50                                                                                         <c:otherwise>
51                                                                                                 <td style="text-align: left; border-buttom: dotted; font-family: monospace">${info}</td>
52                                                                                         </c:otherwise>
53                                                                                         </c:choose>
54                                                                                 </c:if>
55                                                                         </c:forEach>
56                                                                 </tr>
57                                                         </c:forEach>
58                                                 </tbody>
59                                         </table>
60                                 </div>
61                         </c:otherwise>
62                 </c:choose>
63
64         </div>
65         </div>
66
67                 <jsp:include page="fragments/footer.jsp" />
68         </div>
69 </body>
70 </html>