Improve front-end view of the website
[proteocache.git] / webapp / view / reportJobLog.jsp
diff --git a/webapp/view/reportJobLog.jsp b/webapp/view/reportJobLog.jsp
new file mode 100644 (file)
index 0000000..b557aac
--- /dev/null
@@ -0,0 +1,46 @@
+<%@ page language="java" contentType="text/html; charset=UTF-8"
+       pageEncoding="UTF-8"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+
+<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
+<%@page import="java.util.ArrayList"%>
+
+<html>
+<jsp:include page="fragments/header.jsp" />
+<body>
+       <div class="container">
+               <jsp:include page="fragments/mainmenu.jsp" />
+               <spring:url value="/sequence/querysequence" var="searchquery" />
+
+               <p>Information for the job ${IdJob}<br/>
+                       Start timestamp : ${result.logInfo.dateStart}<br />
+                       End timestamp : ${result.logInfo.dateEnd}<br />
+                       IP: ${result.logInfo.ip}
+               </p>
+
+               <table class="table table-striped table-hover table-bordered">
+                       <tbody>
+                               <tr>
+                                       <td>Sequence</td>
+                                       <td style="text-align: left; border-buttom: dotted; font-family: monospace">
+                                               <a title="Click to view other jobs" href="${searchquery}?sequence=${result.logInfo.sequence}&protein=whole&Search=Search">${result.logInfo.sequence}</a>
+                                       </td>
+                               </tr>
+                               <c:forEach items="${result.logInfo.prediction}" var="pred">
+                                       <tr>
+                                               <td>${pred.key}</td>
+                                               <td
+                                                       style="text-align: left; border-buttom: dotted; font-family: monospace">
+                                                       ${pred.value}</td>
+                                       </tr>
+                               </c:forEach>
+                       </tbody>
+               </table>
+
+               <jsp:include page="fragments/footer.jsp" />
+       </div>
+</body>
+</html>
\ No newline at end of file