Tiny "view" correction
[proteocache.git] / webapp / view / reportProteinSequences.jsp
index db6837b..c6be974 100644 (file)
@@ -1,4 +1,3 @@
-<%@ 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">
 <%@ page trimDirectiveWhitespaces="true"%>
 <%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
 <body>
        <div class="container">
                <jsp:include page="fragments/mainmenu.jsp" />
-               <spring:url value="/sequence/query" var="searchquery" />
-               <spring:url value="/joblog/query" var="jobquery" />
+               <spring:url value="/job/results" var="job_query" />
 
        <div class="panel panel-default">
        <div class="panel-heading">
-
                <c:choose>
-                       <c:when test="${flag == 'whole'}">
+                       <c:when test="${searchtype == 'whole'}">
                                <p style="font-weight:bold;">Jobs for the protein sequence: ${prot}</p>
                        </c:when>
                        <c:otherwise>
                                        ${prot}</p>
                        </c:otherwise>
                </c:choose>
-               <!-- <h3>Time execution: ${timeExecution} ms</h3>-->
-
        </div>
-       <div class="panel-body">
 
+       <div class="panel-body">
                <c:choose>
                        <c:when test="${njobs == 0}">
                                <p>No jobs found</p>
                                                                <tr>
                                                                        <th rowspan="${res.size + 2}"><a
                                                                                title="Click to view the job log"
-                                                                               href="${jobquery}?IdJob=${id}">${id}</a></th>
+                                                                               href="${job_query}?IdJob=${id}">${id}</a></th>
                                                                </tr>
                                                                <tr>
-                                                                       <td
-                                                                               style="text-align: center; font-weight: bold; font-family: monospace">Protein
-                                                                               Sequence</td>
-                                                                       <c:if test="${flag == 'whole'}">
+                                                                       <td style="text-align: center; font-weight: bold; font-family: monospace">Protein Sequence</td>
+                                                                       <c:if test="${searchtype == 'whole'}">
                                                                                <td
                                                                                        style="text-align: left; border-buttom: dotted; font-family: monospace"><c:out
                                                                                                value="${res.sequence}" /></td>
                                                                        </c:if>
-                                                                       <c:if test="${flag == 'part'}">
+                                                                       <c:if test="${searchtype == 'partial'}">
                                                                                <td
                                                                                        style="text-align: left; border-buttom: dotted; font-family: monospace">
                                                                                        <c:forEach items="${res.subProt}" var="seq">