Improve front-end view of the website
[proteocache.git] / webapp / view / reportProteinSequencesCounter.jsp
diff --git a/webapp/view/reportProteinSequencesCounter.jsp b/webapp/view/reportProteinSequencesCounter.jsp
new file mode 100644 (file)
index 0000000..953f2d8
--- /dev/null
@@ -0,0 +1,52 @@
+<%@ page language="java" contentType="text/html; charset=UTF-8"
+       pageEncoding="UTF-8"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+
+<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
+<%@page import="java.util.ArrayList"%>
+
+<html>
+<jsp:include page="fragments/header.jsp" />
+<body>
+       <div class="container">
+               <jsp:include page="fragments/mainmenu.jsp" />
+               <spring:url value="/sequence/querysequence" var="searchquery" />
+               <spring:url value="/joblog/query" var="jobquery" />
+
+               <!-- <h3>Time execution: ${timeExecution} ms</h3>-->
+               <c:choose>
+               <c:when test="${njobs == 0}">
+                       <p>No proteins with at least ${counter} jobs found</p>
+               </c:when>
+               <c:otherwise>
+                       <p>${njobs} proteins with at least ${counter} jobs found</p>
+                       <div class="table-responsive">
+                       <table class="table table-striped table-hover table-bordered">
+                       <thead>
+                               <tr>
+                                       <th style="text-align: centre">Number of jobs</th>
+                                       <th style="text-align: left">Protein</th>
+                               </tr>
+                       </thead>
+                       <tbody>
+                               <c:forEach items="${results}" var="res">
+                                       <tr>
+                                               <td>${res.totalId}</td>
+                                               <td style="text-align: left; border-buttom: dotted; font-family: monospace">
+                                                       <a title="Click to view all jobs" href="${searchquery}?sequence=${res.prot}&protein=whole&Search=Search">${res.prot}</a>
+                                               </td>
+                                       </tr>
+                               </c:forEach>
+                       </tbody>
+                       </table>
+                       </div>
+               </c:otherwise>
+               </c:choose>
+
+               <jsp:include page="fragments/footer.jsp" />
+       </div>
+</body>
+</html>
\ No newline at end of file