Apply formatting
[proteocache.git] / webapp / view / reports / Job.jsp
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
3 <%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
4 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
5 <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
6 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
7 <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
8
9 <html>
10 <jsp:include page="../fragments/header.jsp" />
11 <body>
12         <div class="container">
13                 <jsp:include page="../fragments/mainmenu.jsp" />
14                 <spring:url value="/sequence/sequence/results" var="sequence_query" />
15                 <spring:url value="/admin/ip/results" var="ip_query" />
16
17                 <div class="panel panel-default">
18                 <div class="panel-heading">
19                         <p style="font-weight:bold;">Information for the job ${IdJob}</p>
20                 </div>
21                 <div class="panel-body">
22                         <p>Start timestamp : ${result.dateStart}</p>
23                         <p>End timestamp : ${result.dateEnd}</p>
24 <sec:authorize access="hasRole('ROLE_ADMIN')">
25                         <p>IP: <a title="Click to view other jobs" href="${ip_query}?ip=${result.ip}">${result.ip}</a></p>
26 </sec:authorize>
27                         <c:if test='${jobarchive != null}'>
28                                 <spring:url value="../${jobarchive}" var="jobarchivefile" />
29                                 <p>Job archive: <a title="Click to get the file" href="${jobarchivefile}">download</a></p>
30                         </c:if>
31                         <div class="grid-wrapper-div">
32                         <table class="table table-striped table-hover table-bordered">
33                         <tbody>
34                                 <thead>
35                                         <tr>
36                                                 <th>ID</th>
37                                                 <th >Sequence</th>
38                                         </tr>
39                                 </thead>
40                                 <tr>
41                                         <td>Protein</td>
42                                         <td >
43                                                 <a title="Click to view other jobs" href="${sequence_query}?sequence=${result.sequence}&searchtype=whole">${result.sequence}</a>
44                                         </td>
45                                 </tr>
46                                 <c:forEach items="${result.prediction}" var="pred">
47                                         <tr>
48                                                 <td>${pred.key}</td>
49                                                 <td style="text-align: left; border-buttom: dotted; font-family: monospace">${pred.value}</td>
50                                         </tr>
51                                 </c:forEach>
52                         </tbody>
53                         </table>
54                         </div>
55                 </div>
56                 </div>
57
58                 <jsp:include page="../fragments/footer.jsp" />
59         </div>
60 </body>
61 </html>