7aae5d06fdd13adb62426ec36303719246633ce5
[proteocache.git] / webapp / view / reportSSFeatures.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;">Protein Secondary Structure Feature Statistics</div>
21         </div>
22         <div class="panel-body">
23
24                 <c:choose>
25                 <c:when test="${njobs == 0}">
26                         <p>No proteins with feature ${feature} more then ${percent}% of the protein sequence found</p>
27                 </c:when>
28                 <c:otherwise>
29                         <p>${njobs} proteins with feature ${feature} more then ${percent}% of the protein sequence 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">N</th>
35                                         <th style="text-align: left">Protein/Prediction</th>
36                                 </tr>
37                         </thead>
38                         <tbody>
39                                 <c:set var="count" value="0" scope="page" />
40                                 <c:forEach items="${results}" var="res">
41                                         <c:set var="count" value="${count + 1}" scope="page"/>
42                                         <tr>
43                                                 <td rowspan = 2>${count}
44                                                 <td style="text-align: left; border-buttom: dotted; font-family: monospace">
45                                                 <a title="Click to view all jobs" href="${sequence_query}?sequence=${res.key}&searchtype=whole">${res.key}</a></td>
46                                         </tr>
47                                         <tr>
48                                                 <td style="text-align: left; border-buttom: dotted; font-family: monospace">${res.value}</td>
49                                         </tr>
50                                 </c:forEach>
51                         </tbody>
52                         </table>
53                         </div>
54                 </c:otherwise>
55                 </c:choose>
56         </div>
57         </div>
58
59         <jsp:include page="fragments/footer.jsp" />
60         </div>
61 </body>
62 </html>