From 1feca4b1057d907143a9edc1241458cc38832b08 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 20 Feb 2013 01:28:29 +0100 Subject: [PATCH] Turn repeated dependencies into hyperlinks --- src/root/deps.tt | 29 ++++++++++++++++------------- src/root/static/css/hydra.css | 5 +++++ 2 files changed, 21 insertions(+), 13 deletions(-) diff --git a/src/root/deps.tt b/src/root/deps.tt index 08a160c1..241d2e11 100644 --- a/src/root/deps.tt +++ b/src/root/deps.tt @@ -2,27 +2,30 @@ [% PROCESS common.tt %] [% USE HTML %] -[% project = build.project %] -[% jobset = build.jobset %] -[% job = build.job %] +[% project = build.project; + jobset = build.jobset; + job = build.job; + global.nodeId = 1 %] [% BLOCK renderNode %]
  • [% IF done.${node.path} %] - [% node.name %] (repeated) + [% node.name %] [% ELSE %] - [% done.${node.path} = 1 %] + [% done.${node.path} = global.nodeId; global.nodeId = global.nodeId + 1; %] [% IF node.refs.size > 0 %] [% END %] - [% IF node.buildStep %] - [% node.name %] [% - IF log_exists(node.buildStep.drvpath); - INCLUDE renderLogLinks url=c.uri_for('/build' node.buildStep.get_column('build') 'nixlog' node.buildStep.stepnr); - END %] - [% ELSE %] - [% node.name %] - [% END %] + + [% IF node.buildStep %] + [% node.name %] [% + IF log_exists(node.buildStep.drvpath); + INCLUDE renderLogLinks url=c.uri_for('/build' node.buildStep.get_column('build') 'nixlog' node.buildStep.stepnr); + END %] + [% ELSE %] + [% node.name %] (no info) + [% END %] + [% IF node.refs.size > 0 %]