4afbb896ae3bd1e03ada41dc6772fcbb102645cc
[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                 <sec:authorize access="hasRole('ROLE_USER')">
14                         <jsp:include page="../fragments/mainmenu.jsp" />
15                 </sec:authorize>
16                 <sec:authorize access="isAnonymous()">
17                         <jsp:include page="../fragments/publicmenu.jsp" />
18                 </sec:authorize>
19
20                 <spring:url value="/sequence/results" var="sequence_query" />
21                 <spring:url value="/admin/ip/results" var="ip_query" />
22                 <spring:url value="/job/results?IdJob=${IdJob}" var="the_query" />
23                 <spring:url value="/database/remove/go?byId=on&id=${IdJob}&byId=off&date1=&date2=&byDate=off&ip=&byIp=off&seq=&bySequence=off" var="remove_query" />
24
25                 <!-- reload and CSV buttons  -->
26                 <ul class="nav navbar-nav navbar-right">
27                         <li>
28                         <a href="${the_query}" class="btn btn-default active">Reload</a>
29                         </li>
30 <sec:authorize access="hasRole('ROLE_ADMIN')">
31                         <li>
32                         <a href="${remove_query}" class="btn btn-default active">Delete</a>
33                         </li>
34 </sec:authorize>
35                 </ul>
36
37                 <div class="panel panel-default">
38                 <div class="panel-heading">
39                         <p style="font-weight:bold;">Information for the job ${IdJob}</p>
40                 </div>
41                 <div class="panel-body">
42                         <c:choose><c:when test="${jobnotfound == 'yes'}">
43                                 <p>The job not found</p>
44                         </c:when><c:otherwise>
45                         <p>Start timestamp : ${result.dateStart}</p>
46                         <p>End timestamp : ${result.dateEnd}</p>
47                         <c:if test='${result.programName != null}'>
48                                 <c:choose>
49                                 <c:when test="${result.programLink != ''}">
50                                         <p style="font-weight:bold;">
51                                         Program: <a href="${result.programLink}">${result.programName}</a> (version : ${result.programVersion})
52                                         </p>
53                                 </c:when>
54                                 <c:otherwise>
55                                         <p style="font-weight:bold;">Program : ${result.programName} (version : ${result.programVersion})</p>
56                                 </c:otherwise>
57                                 </c:choose>
58                         </c:if>
59 <sec:authorize access="hasRole('ROLE_ADMIN')">
60                         <p>IP: <a title="Click to view other jobs" href="${ip_query}?ip=${result.ip}">${result.ip}</a></p>
61 </sec:authorize>
62                         <c:if test='${jobarchive != null}'>
63                                 <spring:url value="../${jobarchive}" var="jobarchivefile" />
64                                 <p>Job archive: <a title="Click to get the file" href="${jobarchivefile}">download</a></p>
65                         </c:if>
66                         <c:if test='${jobremotelink != null}'>
67                                 <p>Original job link: <a title="Click to go to original job" href="${jobremotelink}">view</a></p>
68                         </c:if>
69                         <div class="grid-wrapper-div">
70                         <table class="table table-striped table-hover table-bordered">
71                         <tbody>
72                                 <thead>
73                                         <tr>
74                                                 <th>ID</th>
75                                                 <th >Sequence</th>
76                                         </tr>
77                                 </thead>
78                                 <tr>
79                                         <td>Protein</td>
80                                         <td >
81                                                 <a title="Click to view other jobs" href="${sequence_query}?sequence=${result.sequence}&searchtype=whole">${result.sequence}</a>
82                                         </td>
83                                 </tr>
84                                 <c:forEach items="${result.prediction}" var="pred">
85                                         <tr>
86                                                 <td>${pred.key}</td>
87                                                 <td style="text-align: left; border-buttom: dotted; font-family: monospace">${pred.value}</td>
88                                         </tr>
89                                 </c:forEach>
90                         </tbody>
91                         </table>
92                         </div>
93                         </c:otherwise></c:choose>
94                 </div>
95                 </div>
96
97                 <jsp:include page="../fragments/footer.jsp" />
98         </div>
99 </body>
100 </html>