Fix problem with different date formats
[proteocache.git] / webapp / view / reportProteinSequencesCounter.jsp
1 <%@ page language="java" contentType="text/html; charset=UTF-8"
2         pageEncoding="UTF-8"%>
3 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4
5 <%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
6 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
7 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
8 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
9 <%@page import="java.util.ArrayList"%>
10
11 <html>
12 <jsp:include page="fragments/header.jsp" />
13 <body>
14         <div class="container">
15                 <jsp:include page="fragments/mainmenu.jsp" />
16                 <spring:url value="/sequence/querysequence" var="searchquery" />
17                 <spring:url value="/joblog/query" var="jobquery" />
18
19
20         <div class="panel panel-default">
21         <div class="panel-heading">
22                 <div style="font-weight:bold;">Jobs Statistics</div>
23         </div>
24         <div class="panel-body">
25
26                 <c:choose>
27                 <c:when test="${njobs == 0}">
28                         <p>No proteins with at least ${counter} jobs found</p>
29                 </c:when>
30                 <c:otherwise>
31                         <p>${njobs} proteins with at least ${counter} jobs found</p>
32                         <div class="table-responsive">
33                         <table class="table table-striped table-hover table-bordered">
34                         <thead>
35                                 <tr>
36                                         <th style="text-align: centre">Number of jobs</th>
37                                         <th style="text-align: left">Protein</th>
38                                 </tr>
39                         </thead>
40                         <tbody>
41                                 <c:forEach items="${results}" var="res">
42                                         <tr>
43                                                 <td>${res.totalId}</td>
44                                                 <td style="text-align: left; border-buttom: dotted; font-family: monospace">
45                                                         <a title="Click to view all jobs" href="${searchquery}?sequence=${res.prot}&protein=whole&Search=Search">${res.prot}</a>
46                                                 </td>
47                                         </tr>
48                                 </c:forEach>
49                         </tbody>
50                         </table>
51                         </div>
52                 </c:otherwise>
53                 </c:choose>
54         </div>
55         </div>
56
57                 <jsp:include page="fragments/footer.jsp" />
58         </div>
59 </body>
60 </html>