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