PROT-7 fixed reports jobs by a day
[proteocache.git] / website / ReportJobsByDate.jsp
index 5192e37..8ced12c 100644 (file)
        </c:otherwise>
 </c:choose>
 <h3>Time execution: ${timeExecution} ms</h3>
+<c:choose>
+
+       <c:when test="${result == null}">
+               <h3>No jobs for this period  </h3>
+       </c:when>
+       <c:otherwise>
 
 <c:set var="sum" value="0" />
 <c:set var="sumOK" value="0" />
                </tr>
 
                <c:forEach items="${result}" var="res">
-                       <tr>
+                       <tr>    
                                <td>${res.date}</td>
-                               <td style="text-align: right"><c:out value="${res.total}" /></td>
-                               <td style="text-align: right">${res.totalOK}</td>
+                               <td style="text-align: right">${res.total}</td>
+                               <td style="text-align: right"><a href="ServletJobsByDay?date=${res.date}">${res.totalOK}</a></td>
                                <td style="text-align: right">${res.totalStopped}</td>
                                <td style="text-align: right">${res.totalError}</td>
                                <td style="text-align: right">${res.totalTimeOut}</td>
@@ -74,4 +80,6 @@
                </c:forEach>
 
        </tbody>
-</table>
\ No newline at end of file
+</table>
+</c:otherwise>
+</c:choose>
\ No newline at end of file