Use a popover to show how to use the build reproduction script

[?]
Apr 26, 2013, 3:12 PM
OIBSCXGIVF2MKTICVICURPOH63D5I5KHNCUD76KA33A6JYGDPJUAC

Dependencies

  • [2] BIVZGPUT Optimise clickable rows
  • [3] HZWUT4YN Allow users to reproduce builds on their own systems
  • [4] 22JB5HNE make changes section more compact/readable
  • [5] TW5ZQX5Z * Move up the build products in the builds page, since they're more
  • [6] 3PNG7NIB Remove trailing whitespace
  • [7] XHK7IGYI * hdyra: show last succeeded build and changes since on build status summary if build has failed
  • [8] WWZWUPFI if no previous successful build, do not show changes section
  • [9] 2GUAKGTB Fix indentation of build.tt
  • [10] R7MDDCB2 Some unnecessary job names
  • [11] K22TMPH5 Make the info tables less compressed
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.
  • [*] IK53RV4V
  • [*] QCGCX2BR Generalize lazy tabs
  • [*] GCHNNFZP

Change contents

  • replacement in src/root/build.tt at line 81
    [3.350][3.350:510]()
    <a class="btn btn-info pull-right clearfix"
    href="[%c.uri_for('/build' build.id 'reproduce')%]">
    Reproduce this build locally
    </a>
    [3.350]
    [3.510]
    [% WRAPPER makePopover title="Reproduce locally" %]
    [% url = c.uri_for('/build' build.id 'reproduce') %]
    <p>You can reproduce this build on your own machine by
    downloading <a [% HTML.attributes(href => url) %]>a script</a>
    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.</p>
    <p>To download and execute the script from the command line,
    run the following command:</p>
    <pre>
    bash <(curl <a [% HTML.attributes(href => url) %]>[% HTML.escape(url) %]</a>)
    </pre>
    [% END %]
  • replacement in src/root/build.tt at line 209
    [4.5429][4.5429:5552]()
    <th>Last successful build <tt>[% INCLUDE renderDateTime timestamp = prevSuccessfulBuild.timestamp %]</tt></th>
    [4.5429]
    [4.5552]
    <th>Last successful build [% INCLUDE renderDateTime timestamp = prevSuccessfulBuild.timestamp %]</th>
  • replacement in src/root/build.tt at line 211
    [4.5648][4.5648:5762]()
    <th>First broken build <tt>[% INCLUDE renderDateTime timestamp = firstBrokenBuild.timestamp %]</tt>
    [4.5648]
    [4.5762]
    <th>First broken build [% INCLUDE renderDateTime timestamp = firstBrokenBuild.timestamp %]
  • replacement in src/root/build.tt at line 215
    [4.64][4.5946:6039]()
    <th>This build <tt>[% INCLUDE renderDateTime timestamp = build.timestamp %]</tt>
    [4.64]
    [4.6039]
    <th>This build [% INCLUDE renderDateTime timestamp = build.timestamp %]
  • edit in src/root/common.tt at line 495
    [15.679]
    [15.679]
    BLOCK makePopover %]
    <div class="btn btn-info pull-right hydra-popover" data-toggle="popover" data-placement="left" data-html="true" [% HTML.attributes('data-content' => content) %]>
    [% title %]
    </div>
    [% END;
  • edit in src/root/layout.tt at line 83
    [2.1461]
    [16.1601]
    $(".hydra-popover").popover({});