From 7e6135a8c676ce95b80d919b9cc20355445cfb30 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 30 Jun 2015 00:27:31 +0200 Subject: [PATCH] Don't repeat links to build step logs Hydra only stores the last log for a particular derivation, so only show log links for the last one. --- src/root/build.tt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/root/build.tt b/src/root/build.tt index 6d9f474a..5ab62a9a 100644 --- a/src/root/build.tt +++ b/src/root/build.tt @@ -18,9 +18,10 @@ NrWhatDurationMachineStatus - [% FOREACH step IN build.buildsteps %] + [% FOREACH step IN build.buildsteps.reverse %] [% IF ( type == "All" ) || ( type == "Failed" && step.status != 0 ) || ( type == "Running" && step.busy == 1 ) %] - [% has_log = buildStepLogExists(step); + [% has_log = seen.${step.drvpath} ? 0 : buildStepLogExists(step); + seen.${step.drvpath} = 1; log = c.uri_for('/build' build.id 'nixlog' step.stepnr); %] [% step.stepnr %]