]> git.argeo.org Git - gpl/argeo-slc.git/blob - org.argeo.slc.webapp/src/main/webapp/WEB-INF/slc-jsp/resultView.jsp
Centralize configs
[gpl/argeo-slc.git] / org.argeo.slc.webapp / src / main / webapp / WEB-INF / slc-jsp / resultView.jsp
1 <div id="main">
2 <h1>Result #${result.uuid}</h1>
3
4 <jsp:useBean id="describedPaths" type="java.util.SortedMap"
5 scope="request" />
6 <jsp:useBean id="toc" type="java.util.SortedMap"
7 scope="request" />
8
9 <p>
10 <a href="addResultToCollection.web?resultUuid=${result.uuid}&collectionId=staging">Add to staging collection</a><br/>
11 <a href="addResultToCollection.web?resultUuid=${result.uuid}&collectionId=official">Add to official collection</a>
12 </p>
13
14 <table>
15 <c:forEach items="${toc}" var="tocEntry">
16 <jsp:useBean id="tocEntry" type="java.util.Map.Entry" />
17 <tr>
18 <td style="padding-left: ${tocEntry.key.depth}0px"
19 class="${tocEntry.value}">${tocEntry.key.name }</td>
20 </tr>
21 </c:forEach>
22 </table>
23
24 <c:forEach items="${result.resultParts}" var="resultPartEntry">
25 <jsp:useBean id="resultPartEntry" type="java.util.Map.Entry" />
26
27 <h2><%=describedPaths.get(resultPartEntry.getKey())%></h2>
28 <table>
29 <c:forEach items="${result.elements[resultPartEntry.key].tags}" var="tagEntry">
30 <tr>
31 <td style="font-style: italic;font-size: 80%">${tagEntry.key}</td>
32 <td style="font-size: 80%">${tagEntry.value}</td>
33 </tr>
34 </c:forEach>
35 </table>
36 <table>
37
38 <c:forEach items="${resultPartEntry.value.parts}" var="part">
39 <tr>
40 <td class="${part.status == 0 ? 'passed' : 'failed'}">
41 ${part.message}</td>
42 <c:if test="${part.testRunUuid!=null}">
43 <td>
44 <a href="testRunView.web?uuid=${part.testRunUuid}">test run</a>
45 </td>
46 </c:if>
47 </tr>
48 </c:forEach>
49 </table>
50
51 </c:forEach></div>