From ea4c88bda12d867e80fffd24ba43612248c9bab8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 26 Apr 2013 17:12:43 +0200 Subject: [PATCH] Use a popover to show how to use the build reproduction script --- src/root/build.tt | 27 ++++++++++++++++++++------- src/root/common.tt | 7 +++++++ src/root/layout.tt | 1 + 3 files changed, 28 insertions(+), 7 deletions(-) diff --git a/src/root/build.tt b/src/root/build.tt index a9a1c8ea..be8fdc5e 100644 --- a/src/root/build.tt +++ b/src/root/build.tt @@ -78,10 +78,23 @@
[% IF build.nixexprinput %] - - Reproduce this build locally - + [% WRAPPER makePopover title="Reproduce locally" %] + [% url = c.uri_for('/build' build.id 'reproduce') %] + +

You can reproduce this build on your own machine by + downloading url) %]>a script + that checks out all inputs of the build and then invokes Nix + to perform the build. This script requires that you have Nix + on your system.

+ +

To download and execute the script from the command line, + run the following command:

+ +
+bash <(curl  url) %]>[% HTML.escape(url) %])
+
+ + [% END %] [% END %] @@ -193,13 +206,13 @@

Changes

- + [% IF prevSuccessfulBuild && firstBrokenBuild && firstBrokenBuild.id != build.id %] - [% END %] - diff --git a/src/root/common.tt b/src/root/common.tt index 01d03c0d..dcc50c9f 100644 --- a/src/root/common.tt +++ b/src/root/common.tt @@ -492,4 +492,11 @@ BLOCK makeLazyTab %] [% END; +BLOCK makePopover %] +
content) %]> + [% title %] +
+[% END; + + %] diff --git a/src/root/layout.tt b/src/root/layout.tt index 42f3ac37..addbb0f4 100644 --- a/src/root/layout.tt +++ b/src/root/layout.tt @@ -80,6 +80,7 @@ bootbox.animate(false); + $(".hydra-popover").popover({}); });
Last successful build [% INCLUDE renderDateTime timestamp = prevSuccessfulBuild.timestamp %]Last successful build [% INCLUDE renderDateTime timestamp = prevSuccessfulBuild.timestamp %]First broken build [% INCLUDE renderDateTime timestamp = firstBrokenBuild.timestamp %] + First broken build [% INCLUDE renderDateTime timestamp = firstBrokenBuild.timestamp %] log diff This build [% INCLUDE renderDateTime timestamp = build.timestamp %] + This build [% INCLUDE renderDateTime timestamp = build.timestamp %] log diff