dd0b1dd533b141d8579278650f1b86795246279e
[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                         <p>Run : ${result.programmeName} server</p>
25                         <p>Version : ${result.version}</p>
26 <sec:authorize access="hasRole('ROLE_ADMIN')">
27                         <p>IP: <a title="Click to view other jobs" href="${ip_query}?ip=${result.ip}">${result.ip}</a></p>
28 </sec:authorize>
29                         <c:if test='${jobarchive != null}'>
30                                 <spring:url value="../${jobarchive}" var="jobarchivefile" />
31                                 <p>Job archive: <a title="Click to get the file" href="${jobarchivefile}">download</a></p>
32                         </c:if>
33                         <c:if test='${jobremotelink != null}'>
34                                 <p>Original job link: <a title="Click to go to original job" href="${jobremotelink}">view</a></p>
35                         </c:if>
36                         <div class="grid-wrapper-div">
37                         <table class="table table-striped table-hover table-bordered">
38                         <tbody>
39                                 <thead>
40                                         <tr>
41                                                 <th>ID</th>
42                                                 <th >Sequence</th>
43                                         </tr>
44                                 </thead>
45                                 <tr>
46                                         <td>Protein</td>
47                                         <td >
48                                                 <a title="Click to view other jobs" href="${sequence_query}?sequence=${result.sequence}&searchtype=whole">${result.sequence}</a>
49                                         </td>
50                                 </tr>
51                                 <c:forEach items="${result.prediction}" var="pred">
52                                         <tr>
53                                                 <td>${pred.key}</td>
54                                                 <td style="text-align: left; border-buttom: dotted; font-family: monospace">${pred.value}</td>
55                                         </tr>
56                                 </c:forEach>
57                         </tbody>
58                         </table>
59                         </div>
60                 </div>
61                 </div>
62
63                 <jsp:include page="../fragments/footer.jsp" />
64         </div>
65 </body>
66 </html>