93af6809a8bf94a52a6d350b83a537ca0725fbec
[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/sequence/results" var="sequence_query" />
17
18         <div class="panel panel-default">
19         <div class="panel-heading">
20                 <div style="font-weight:bold;">Jobs Statistics</div>
21         </div>
22         <div class="panel-body">
23
24                 <c:choose>
25                 <c:when test="${njobs == 0}">
26                         <p>No proteins with at least ${counter} jobs found</p>
27                 </c:when>
28                 <c:otherwise>
29                         <p>${njobs} proteins with at least ${counter} jobs found</p>
30                         <div class="table-responsive">
31                         <table class="table table-striped table-hover table-bordered">
32                         <thead>
33                                 <tr>
34                                         <th style="text-align: centre">Number of jobs</th>
35                                         <th style="text-align: left">Protein</th>
36                                 </tr>
37                         </thead>
38                         <tbody>
39                                 <c:forEach items="${results}" var="res">
40                                         <tr>
41                                                 <td>${res.totaljobs}</td>
42                                                 <td style="text-align: left; border-buttom: dotted; font-family: monospace">
43                                                         <a title="Click to view all jobs" href="${sequence_query}?sequence=${res.name}&searchtype=whole">${res.name}</a>
44                                                 </td>
45                                         </tr>
46                                 </c:forEach>
47                         </tbody>
48                         </table>
49                         </div>
50                 </c:otherwise>
51                 </c:choose>
52         </div>
53         </div>
54
55         <jsp:include page="fragments/footer.jsp" />
56         </div>
57 </body>
58 </html>