Add the "Reload" and "CSV" buttons
[proteocache.git] / webapp / view / reportJobStatisticsOneDay.jsp
index 1194596..23af0ac 100644 (file)
 <body>
        <div class="container">
                <jsp:include page="fragments/mainmenu.jsp" />
-               <spring:url value="/joblog/query" var="jobquery" />
-               <spring:url value="/stat/oneday?date=${date}" var="thequery" />
+               <spring:url value="/job/results" var="job_query" />
+               <spring:url value="/stat/onedaystat?date=${date}&status=${status}" var="the_query" />
+               <spring:url value="/sequence/sequence/results" var="sequence_query" />
 
        <ul class="nav navbar-nav navbar-right">
                <li>
-               <a href="${thequery}" class="btn btn-default active">Reload</a>
+               <a href="${the_query}" class="btn btn-default active">Reload</a>
                </li>
        </ul>
 
                <tbody>
                        <c:forEach items="${results.jobidAndSeq}" var="res" varStatus="status">
                                <tr>
-                                       <td><a href="${jobquery}?IdJob=${res.key}">${res.key}</a></td>
+                                       <td><a href="${job_query}?IdJob=${res.key}">${res.key}</a></td>
                                        <c:choose>
                                        <c:when test="${res.value == ''}">
                                                        <td>Job with alignment</td>
                                        </c:when>
                                        <c:otherwise>
-                                               <td style="text-align: left; border-buttom: dotted; font-family: monospace">${res.value}</td>
+                                               <td style="text-align: left; border-buttom: dotted; font-family: monospace">
+                                               <!-- ${res.value}-->
+                                               <a title="Click to view all jobs" href="${sequence_query}?sequence=${res.value}&searchtype=whole">
+                                               <script>
+                                                       document.write(shorten('${res.value}', 108));
+                                               </script>
+                                               </a>
+                                               </td>
                                        </c:otherwise>
                                        </c:choose>