Clean up JSP code
[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="/joblog/query" 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}" var="res" varStatus="status">
38                                                                 <tr>
39                                                                         <td><a href="${jobqueryservlet}?IdJob=${res.id}&Search=Search">${res.id}</a></td>
40                                                                         <!-- <td style="text-align: left; border-buttom: dotted; font-family: monospace">${res.logInfo.dateStart}</td>-->
41                                                                         <td style="text-align: left; border-buttom: dotted; font-family: monospace">${res.date}</td>
42
43                                                                         <c:choose>
44                                                                         <c:when test="${res.prot==''}">
45                                                                                 <td style="text-align: left; border-buttom: dotted; font-family: monospace">Alignment job</td>
46                                                                         </c:when>
47                                                                         <c:otherwise>
48                                                                                 <td style="text-align: left; border-buttom: dotted; font-family: monospace">${res.prot}</td>
49                                                                         </c:otherwise>
50                                                                         </c:choose>
51                                                                 </tr>
52                                                         </c:forEach>
53                                                 </tbody>
54                                         </table>
55                                 </div>
56                         </c:otherwise>
57                 </c:choose>
58
59         </div>
60         </div>
61
62                 <jsp:include page="fragments/footer.jsp" />
63         </div>
64 </body>
65 </html>