Add posibility to look at failed jobs
[proteocache.git] / webapp / view / reportJobStatistics.jsp
index 509a539..5a833ec 100644 (file)
                                                                <td style="text-align: center">${res.key}</td>
                                                                <c:set var="value" value="${res.value}"/>
                                                                <td style="text-align: right">${value.total}</td>
-                                                               <td style="text-align: right"><a href="${onedayquery}?date=${res.key}">${value.totalOK}</a></td>
-                                                               <td style="text-align: right">${value.totalStopped}</td>
-                                                               <td style="text-align: right">${value.totalError}</td>
-                                                               <td style="text-align: right">${value.totalTimeOut}</td>
+                                                               <td style="text-align: right"><a href="${onedayquery}?date=${res.key}&status=OK">${value.totalOK}</a></td>
+                                                               <td style="text-align: right">
+                                                                       <c:choose>
+                                                                       <c:when test="${value.totalStopped == 0}">0</c:when>
+                                                                       <c:otherwise><a href="${onedayquery}?date=${res.key}&status=Stopped">${value.totalStopped}</a></c:otherwise>
+                                                                       </c:choose>
+                                                               </td>
+                                                               <td style="text-align: right">
+                                                                       <c:choose>
+                                                                       <c:when test="${value.totalError == 0}">0</c:when>
+                                                                       <c:otherwise><a href="${onedayquery}?date=${res.key}&status=JpredError">${value.totalError}</a></c:otherwise>
+                                                                       </c:choose>
+                                                               </td>
+                                                               <td style="text-align: right">
+                                                                       <c:choose>
+                                                                       <c:when test="${value.totalTimeOut == 0}">0</c:when>
+                                                                       <c:otherwise><a href="${onedayquery}?date=${res.key}&status=TimedOut">${value.totalTimeOut}</a></c:otherwise>
+                                                                       </c:choose>
+                                                               </td>
                                                        </tr>
                                                </c:forEach>
                                        </tbody>
@@ -81,7 +96,6 @@
                                </div>
                        </c:otherwise>
                </c:choose>
-
        </div>
        </div>