Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Commit

Permalink
Tidy up display of non-executed rows.
Browse files Browse the repository at this point in the history
  • Loading branch information
tfennelly committed Feb 2, 2016
1 parent 6ada70f commit 4cb538b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ boolean isEnd() {
return node instanceof BlockEndNode;
}

boolean isExecuted() {
public boolean isExecuted() {
return NotExecutedNodeAction.isExecuted(node);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,33 +41,19 @@

<j:forEach var="row" items="${it.rows}">
<j:set var="node" value="${row.node}"/>
<!-- Greyed out if not executed -->
<j:if test="${!row.isExecuted()}">
<tr style="background: lightgrey">
<!-- tooltip is for now debugging only -->
<td style="padding-left: ${row.treeDepth*20+5}px" tooltip="ID: ${node.id}">
<a href="${rootURL}/${node.url}">
${row.displayName}
</a>
</td>
<j:forEach var="column" items="${columns}">
<st:include from="${column}" page="column"/>
</j:forEach>
</tr>
</j:if>
<j:if test="${row.isExecuted()}">
<tr>
<!-- tooltip is for now debugging only -->
<td style="padding-left: ${row.treeDepth*20+5}px" tooltip="ID: ${node.id}">
<a href="${rootURL}/${node.url}">
${row.displayName}
</a>
</td>
<j:forEach var="column" items="${columns}">
<st:include from="${column}" page="column"/>
</j:forEach>
</tr>
</j:if>
<tr style="opacity: ${row.isExecuted()?'1.0':'0.3'}"> <!-- Muted if not executed -->
<!-- tooltip is for now debugging only -->
<j:set var="exec_state" value=""/>
<j:if test="${!row.executed}"><j:set var="exec_state" value=" (${%not executed})"/></j:if>
<td style="padding-left: ${row.treeDepth*20+5}px" tooltip="ID: ${node.id}${exec_state}">
<a href="${rootURL}/${node.url}">
${row.displayName}
</a>
</td>
<j:forEach var="column" items="${columns}">
<st:include from="${column}" page="column"/>
</j:forEach>
</tr>
</j:forEach>
</table>
</div>
Expand Down

0 comments on commit 4cb538b

Please sign in to comment.