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