Add private method instead of an exteran dependence
[proteocache.git] / webapp / view / reportProteinSequencesCounter.jsp
index 953f2d8..93af680 100644 (file)
 <body>
        <div class="container">
                <jsp:include page="fragments/mainmenu.jsp" />
-               <spring:url value="/sequence/querysequence" var="searchquery" />
-               <spring:url value="/joblog/query" var="jobquery" />
+               <spring:url value="/sequence/sequence/results" var="sequence_query" />
+
+       <div class="panel panel-default">
+       <div class="panel-heading">
+               <div style="font-weight:bold;">Jobs Statistics</div>
+       </div>
+       <div class="panel-body">
 
-               <!-- <h3>Time execution: ${timeExecution} ms</h3>-->
                <c:choose>
                <c:when test="${njobs == 0}">
                        <p>No proteins with at least ${counter} jobs found</p>
@@ -34,9 +38,9 @@
                        <tbody>
                                <c:forEach items="${results}" var="res">
                                        <tr>
-                                               <td>${res.totalId}</td>
+                                               <td>${res.totaljobs}</td>
                                                <td style="text-align: left; border-buttom: dotted; font-family: monospace">
-                                                       <a title="Click to view all jobs" href="${searchquery}?sequence=${res.prot}&protein=whole&Search=Search">${res.prot}</a>
+                                                       <a title="Click to view all jobs" href="${sequence_query}?sequence=${res.name}&searchtype=whole">${res.name}</a>
                                                </td>
                                        </tr>
                                </c:forEach>
                        </div>
                </c:otherwise>
                </c:choose>
+       </div>
+       </div>
 
-               <jsp:include page="fragments/footer.jsp" />
+       <jsp:include page="fragments/footer.jsp" />
        </div>
 </body>
 </html>
\ No newline at end of file