1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
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"%>
10 <jsp:include page="fragments/header.jsp" />
12 <div class="container">
13 <jsp:include page="fragments/mainmenu.jsp" />
14 <spring:url value="/admin/ip/results" var="ipquery" />
15 <spring:url value="/admin/ip/counts/results?JobCounter=${counter}" var="the_query"/>
17 <!-- reload and CSV buttons -->
18 <ul class="nav navbar-nav navbar-right">
20 <a href="${the_query}" class="btn btn-default active">Reload</a>
22 <c:choose><c:when test="${csvfile != ''}">
24 <a id="forCSVfile" download="data.csv" href="data:application/csv;charset=utf-8,${csvfile}" class="btn btn-default active">CSV</a>
29 <div class="panel panel-default">
30 <div class="panel-heading">
31 <p style="font-weight:bold;">IP Statistics</p>
33 <div class="panel-body">
36 <c:when test="${njobs == 0}">
37 <p>No IP with at least ${counter} jobs ever launched found</p>
40 <p>${njobs} IP with at least ${counter} jobs ever launched</p>
41 <div class="table-responsive">
42 <table class="table table-striped table-hover table-bordered" id="counts">
45 <th style="text-align: centre">Number of jobs</th>
46 <th style="text-align: left">IP</th>
50 <c:forEach items="${results}" var="res">
52 <td>${res.totaljobs}</td>
53 <td><a title="Click to view other jobs" href="${ipquery}?ip=${res.name}&Search=Search">${res.name}</a></td>
65 <jsp:include page="fragments/footer.jsp" />