Move 'keep build' and 'restart' to toplevel menu

[?]
Apr 12, 2012, 7:50 PM
NAJJDIK6EKECMFX4LPOAEQ4BPS6GBNARQQLWDZPKL5UE43BSO54AC

Dependencies

  • [2] R5HDC22Y Move 'clone build' and 'restart build' to top menu
  • [3] MOX7XJ2E Merge the BuildSchedulingInfo table into the Builds table
  • [4] ZI535LI6 * hydra: 'new' UI for project/jobset/job/build
  • [5] T6KISLR6 Fix indentation
  • [6] 3SQCOHZN * minor performance tweaks
  • [7] HPEG2RHV Merge the BuildResultInfo table into the Builds table
  • [8] OEPUOUNB Using twitter bootstrap for more consistent looks for Hydra
  • [9] E3X3C5LK Replace ugly link with nice small buttons
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.
  • [*] IK53RV4V
  • [*] QL55ECJ6 - adapted ui for hydra, more in line with nixos.org website

Change contents

  • edit in src/root/build.tt at line 365
    [3.12050][3.12050:12298]()
    [% IF c.user_exists %]
    <form action="[% c.uri_for('/build' build.id 'keep' 0) %]" method="post" class="inline">
    <button id="unkeep" type="submit">Unkeep</button>
    </form>
    [% END %]
  • edit in src/root/build.tt at line 367
    [3.12396][3.12396:12640]()
    [% IF c.user_exists %]
    <form action="[% c.uri_for('/build' build.id 'keep' 1) %]" method="post" class="inline">
    <button id="keep" type="submit">Keep</button>
    </form>
    [% END %]
  • edit in src/root/common.tt at line 265
    [3.2523][3.2586:2655](),[3.2655][3.2626:2810](),[3.2626][3.2626:2810]()
    [% IF c.user_exists && (buildstatus == 3 || buildstatus == 4) %]
    <form action="[% c.uri_for('/build' build.id 'restart') %]" method="post" class="inline">
    <button id="restart" type="submit">Restart</button>
    </form>
    [% END %]
  • edit in src/root/topbar.tt at line 117
    [2.142]
    [2.142]
    [% IF !available %]
    [% ELSIF build.keep %]
    [% INCLUDE makeLink
    uri = c.uri_for('/build' build.id 'keep' 0)
    title = "Unkeep build" %]
    [% ELSE %]
    [% INCLUDE makeLink
    uri = c.uri_for('/build' build.id 'keep' 1)
    title = "Keep build" %]
    [% END %]
  • replacement in src/root/topbar.tt at line 129
    [2.168][2.168:186]()
    uri = '#'
    [2.168]
    [2.186]
    uri = c.uri_for('/build' build.id 'restart')