1 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4 <%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
5 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
6 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
7 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
10 <jsp:include page="fragments/header.jsp" />
13 <div class="container">
14 <jsp:include page="fragments/mainmenu.jsp" />
15 <spring:url value="/sequence/sequence/results" var="sequence_query" />
16 <spring:url value="/sequence/counts/results?counterJob=${counter}" var="the_query" />
17 <c:set var="shortensequencelength" value="108"/>
19 <!-- reload and CSV buttons -->
20 <ul class="nav navbar-nav navbar-right">
22 <a href="${the_query}" class="btn btn-default active">Reload</a>
24 <c:choose><c:when test="${njobs > 0}">
26 <a id="forCSVfile" download="data.csv" href="data:application/csv;charset=utf-8,${csvfile}" class="btn btn-default active">CSV</a>
31 <div class="panel panel-default">
32 <div class="panel-heading">
33 <p style="font-weight:bold;">Jobs Statistics</p>
36 <div class="panel-body">
38 <c:when test="${njobs == 0}">
39 <p>No proteins with at least ${counter} jobs found</p>
42 <p>${njobs} proteins with at least ${counter} jobs found</p>
43 <div class="table-responsive">
44 <table class="table table-striped table-hover table-bordered" id="counts">
47 <th style="text-align: centre">Number of jobs</th>
48 <th style="text-align: left">Protein</th>
52 <c:forEach items="${results}" var="res">
54 <td>${res.totaljobs}</td>
55 <td style="text-overflow:ellipsis text-align: left; font-family: monospace" id="proteinline">
56 <a title="Click to view all jobs" href="${sequence_query}?sequence=${res.name}&searchtype=whole">
58 document.write(shorten('${res.name}', '${shortensequencelength}'));
73 <jsp:include page="fragments/footer.jsp" />