Add direct link to the job archive file (raw data)
[proteocache.git] / webapp / view / reportJobLog.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                         <table class="table table-striped table-hover table-bordered">
32                         <tbody>
33                                 <tr>
34                                         <td>Sequence</td>
35                                         <td style="text-align: left; border-buttom: dotted; font-family: monospace">
36                                                 <a title="Click to view other jobs" href="${sequence_query}?sequence=${result.sequence}&searchtype=whole">${result.sequence}</a>
37                                         </td>
38                                 </tr>
39                                 <c:forEach items="${result.prediction}" var="pred">
40                                         <tr>
41                                                 <td>${pred.key}</td>
42                                                 <td style="text-align: left; border-buttom: dotted; font-family: monospace">${pred.value}</td>
43                                         </tr>
44                                 </c:forEach>
45                         </tbody>
46                         </table>
47                 </div>
48                 </div>
49
50                 <jsp:include page="fragments/footer.jsp" />
51         </div>
52 </body>
53 </html>