forked from lix-project/hydra
Render the dependencies as a tree
This commit is contained in:
parent
41d7d63339
commit
18da3ac397
|
@ -7,12 +7,14 @@
|
|||
[% job = build.job %]
|
||||
|
||||
[% BLOCK renderNode %]
|
||||
<li class="treenode">
|
||||
<li>
|
||||
[% IF done.${node.path} %]
|
||||
<span class="treeline"><tt>[% node.name %]</tt> (<em>repeated</em>)</span>
|
||||
<tt>[% node.name %]</tt> (<em>repeated</em>)
|
||||
[% ELSE %]
|
||||
[% done.${node.path} = 1 %]
|
||||
<span class="treeline">
|
||||
[% IF node.refs.size > 0 %]
|
||||
<a href="javascript:" class="tree-toggle"></a>
|
||||
[% END %]
|
||||
[% IF node.buildStep %]
|
||||
<a href="[% c.uri_for('/build' node.buildStep.get_column('build')) %]"><tt>[% node.name %]</tt></a> [%
|
||||
IF log_exists(node.buildStep.drvpath);
|
||||
|
@ -21,9 +23,8 @@
|
|||
[% ELSE %]
|
||||
<tt>[% node.name %]</tt>
|
||||
[% END %]
|
||||
</span>
|
||||
[% IF node.refs.size > 0 %]
|
||||
<ul>
|
||||
<ul class="subtree">
|
||||
[% FOREACH ref IN node.refs; INCLUDE renderNode node=ref; END %]
|
||||
</ul>
|
||||
[% END %]
|
||||
|
|
Loading…
Reference in a new issue