From a5cfae078ed7ee43a50ee09f5a53946895dac59d Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 2 Oct 2013 19:10:00 +0200 Subject: [PATCH] Remove the Build menu from the top bar It's now a dropdown menu in the tabs thingy, which subsumes the "Reproduce locally" button. This makes the actions in the menu a bit more visible, IMHO. --- src/lib/Hydra/Controller/Build.pm | 3 +- src/root/build.tt | 82 +++++++++++++++++++++++-------- src/root/common.tt | 6 +++ src/root/topbar.tt | 49 ------------------ 4 files changed, 69 insertions(+), 71 deletions(-) diff --git a/src/lib/Hydra/Controller/Build.pm b/src/lib/Hydra/Controller/Build.pm index e17056bf..c3836b51 100644 --- a/src/lib/Hydra/Controller/Build.pm +++ b/src/lib/Hydra/Controller/Build.pm @@ -443,9 +443,8 @@ sub restart : Chained('buildChain') PathPart Args(0) { requireProjectOwner($c, $build->project); - my $drvpath = $build->drvpath; error($c, "This build cannot be restarted.") - unless $build->finished && -f $drvpath; + unless $build->finished && -f $build->drvpath; restartBuild($c->model('DB')->schema, $build); diff --git a/src/root/build.tt b/src/root/build.tt index 58464629..7025854e 100644 --- a/src/root/build.tt +++ b/src/root/build.tt @@ -68,6 +68,38 @@ [% END %]