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