From 6b657120459c6e1681513d792f469d4fb4bd8bd1 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Fri, 13 Apr 2012 10:19:15 +0200 Subject: [PATCH] Restructure build menu --- src/root/topbar.tt | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/src/root/topbar.tt b/src/root/topbar.tt index 6cd43270..97115fb7 100644 --- a/src/root/topbar.tt +++ b/src/root/topbar.tt @@ -110,24 +110,26 @@ [% INCLUDE makeLink uri = '#' title = "Related builds" %] -
  • - [% INCLUDE makeLink - uri = c.uri_for('/build' build.id 'clone') - title = "Clone build" %] - [% IF !available %] - [% ELSIF build.keep %] + [% IF c.user_exists %] +
  • [% INCLUDE makeLink - uri = c.uri_for('/build' build.id 'keep' 0) - title = "Unkeep build" %] - [% ELSE %] + uri = c.uri_for('/build' build.id 'clone') + title = "Clone build" %] + [% 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 %] [% INCLUDE makeLink - uri = c.uri_for('/build' build.id 'keep' 1) - title = "Keep build" %] + uri = c.uri_for('/build' build.id 'restart') + title = "Restart build" %] [% END %] - [% INCLUDE makeLink - uri = c.uri_for('/build' build.id 'restart') - title = "Restart build" %] [% END %] [% END %]