hydra/src/root/deps.tt

60 lines
1.7 KiB
Plaintext
Raw Normal View History

[% WRAPPER layout.tt title="Job $project.name:$jobset.name:$job.name build $id" %]
[% PROCESS common.tt %]
[% USE HTML %]
[% project = build.project;
jobset = build.jobset;
job = build.job;
global.nodeId = 1 %]
[% BLOCK renderNode %]
2013-02-20 00:02:18 +00:00
<li>
[% IF done.${node.path} %]
<a href="#[% done.${node.path} %]"><tt>[% node.name %]</tt></a>
[% ELSE %]
[% done.${node.path} = global.nodeId; global.nodeId = global.nodeId + 1; %]
[% IF node.refs.size > 0 %]
2013-02-20 00:02:18 +00:00
<a href="javascript:" class="tree-toggle"></a>
[% END %]
<span class="dep-tree-line" id="[% done.${node.path} %]">
[% 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);
INCLUDE renderLogLinks url=c.uri_for('/build' node.buildStep.get_column('build') 'nixlog' node.buildStep.stepnr);
END %]
[% ELSE %]
<tt>[% node.name %]</tt> (<em>no info</em>)
[% END %]
</span>
2013-02-20 00:02:18 +00:00
[% IF node.refs.size > 0 %]
<ul class="subtree">
[% FOREACH ref IN node.refs; INCLUDE renderNode node=ref; END %]
</ul>
[% END %]
[% END %]
</li>
[% END %]
<a name="runtime"></a>
<h2>Runtime dependency graph</h2>
[% IF available %]
<ul class="tree">
[% done={}; FOREACH node IN runtimeGraph; INCLUDE renderNode; END %]
</ul>
[% ELSE %]
<p><em>No longer available.</em></p>
[% END %]
<a name="buildtime"></a>
<h2>Build-time dependency graph</h2>
[% IF drvAvailable %]
<ul class="tree">
[% INCLUDE renderNode node=buildTimeGraph %]
</ul>
[% ELSE %]
<p><em>No longer available.</em></p>
[% END %]
[% END %]