diff --git a/src/root/deps.tt b/src/root/deps.tt
index 80c2a92f..3cb59770 100644
--- a/src/root/deps.tt
+++ b/src/root/deps.tt
@@ -7,12 +7,12 @@
[% job = build.job %]
[% BLOCK renderNode %]
-
+
[% IF done.${node.path} %]
- [% node.name %] (repeated)
+ [% node.name %] (repeated)
[% ELSE %]
[% done.${node.path} = 1 %]
-
+
[% IF node.buildStep %]
[% node.name %] [%
IF log_exists(node.buildStep.drvpath);
@@ -21,7 +21,7 @@
[% ELSE %]
[% node.name %]
[% END %]
-
+
[% IF node.refs.size > 0 %]
[% FOREACH ref IN node.refs; INCLUDE renderNode node=ref; END %]
@@ -34,7 +34,7 @@
Runtime dependency graph
[% IF available %]
-
+
[% done={}; FOREACH node IN runtimeGraph; INCLUDE renderNode; END %]
[% ELSE %]
@@ -44,7 +44,7 @@
Build-time dependency graph
[% IF drvAvailable %]
-
+
[% INCLUDE renderNode node=buildTimeGraph %]
[% ELSE %]
diff --git a/src/root/static/css/tree.css b/src/root/static/css/tree.css
index 2d1c3646..71df2f12 100644
--- a/src/root/static/css/tree.css
+++ b/src/root/static/css/tree.css
@@ -4,27 +4,27 @@ ul.tree, ul.subtree {
list-style-type: none;
}
-/* Indent each tree level. */
-li.tree-line {
+/* Indent each tree level and draw vertical tree lines next to all
+ children except the last. */
+ul.subtree > li {
position: relative;
padding-left: 2.0em;
-}
-
-li.tree-line:last-child {
- padding-left: 2.1em; /* for the 0.1em border-left in the last child */
-}
-
-/* Draw vertical tree lines next to all children except the last. */
-li.tree-line {
border-left: 0.1em solid #6185a0;
}
-li.tree-line:last-child {
+ul.subtree > li:last-child {
+ padding-left: 2.1em; /* for the 0.1em border-left in the last child */
border-left: 0;
}
+/* Draw the vertical tree line to the last child. */
+ul.subtree > li:last-child > *:first-child:before {
+ border-left: 0.1em solid #6185a0;
+}
+
/* Draw horizontal tree lines to all children. */
-span.tree-conn {
+ul.subtree > li > *:first-child:before {
+ content: "";
position: absolute;
height: 0.65em;
left: 0em;
@@ -32,13 +32,8 @@ span.tree-conn {
border-bottom: 0.1em solid #6185a0;
}
-/* Draw the vertical tree line to the last child. */
-li.tree-line:last-child > span.tree-conn {
- border-left: 0.1em solid #6185a0;
-}
-
-.tree-toggle {
+/* Ensure that the + and - have the same size. */
+a.tree-toggle {
text-decoration: none;
font-family: monospace;
- font-size: larger;
}
diff --git a/src/xsl/log2html.xsl b/src/xsl/log2html.xsl
index d8e27f8b..fbd5615f 100644
--- a/src/xsl/log2html.xsl
+++ b/src/xsl/log2html.xsl
@@ -45,8 +45,7 @@