TreeRenderer: fix process/node distinction

fixes #86
This commit is contained in:
Thomas Gelf 2017-01-26 15:59:43 +01:00
parent 5b0d9674d4
commit 3718968883
2 changed files with 7 additions and 3 deletions

View file

@ -117,7 +117,7 @@ class TreeRenderer extends Renderer
if ($node->isHandled()) {
$attributes->add('class', 'handled');
}
if ($node->hasChildren()) {
if ($node instanceof BpNode) {
$attributes->add('class', 'operator');
} else {
$attributes->add('class', 'node');
@ -126,7 +126,7 @@ class TreeRenderer extends Renderer
$tbody = $table->createElement('tbody');
$tr = $tbody->createElement('tr');
if ($node->hasChildren()) {
if ($node instanceof BpNode) {
$tr->createElement(
'th',
array(

View file

@ -211,7 +211,11 @@ table.bp.node.handled td > a:last-child, table.bp.node.ok td > a:last-child,
table.bp th {
border-left-width: 0.8em;
width: 1.2em;
width: 1.8em;
}
table.process.missing th span {
display: none;
}
table.bp.handled > tbody > tr > th, table.bp.ok > tbody > tr > th {