2a6c88255cf656b661a31d0dfeae744580346e79
[proteocache.git] / webapp / view / reportIPstatistics.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 <%@page import="java.util.ArrayList"%>
8
9 <html>
10 <jsp:include page="fragments/header.jsp" />
11 <body>
12         <div class="container">
13                 <jsp:include page="fragments/mainmenu.jsp" />
14                 <spring:url value="/admin/ip/results" var="ipquery" />
15
16         <div class="panel panel-default">
17         <div class="panel-heading">
18                 <div style="font-weight:bold;">Jobs Statistics</div>
19         </div>
20         <div class="panel-body">
21
22                 <c:choose>
23                 <c:when test="${njobs == 0}">
24                         <p>No IP with at least ${counter} jobs ever launched found</p>
25                 </c:when>
26                 <c:otherwise>
27                         <p>${njobs} IP with at least ${counter} jobs ever launched</p>
28                         <div class="table-responsive">
29                         <table class="table table-striped table-hover table-bordered">
30                         <thead>
31                                 <tr>
32                                         <th style="text-align: centre">Number of jobs</th>
33                                         <th style="text-align: left">IP</th>
34                                 </tr>
35                         </thead>
36                         <tbody>
37                                 <c:forEach items="${results}" var="res">
38                                         <tr>
39                                                 <td>${res.totaljobs}</td>
40                                                 <td><a title="Click to view other jobs" href="${ipquery}?ip=${res.name}&Search=Search">${res.name}</a></td>
41                                         </tr>
42                                 </c:forEach>
43                         </tbody>
44                         </table>
45                         </div>
46                 </c:otherwise>
47                 </c:choose>
48
49         </div>
50         </div>
51
52                 <jsp:include page="fragments/footer.jsp" />
53         </div>
54 </body>
55 </html>