Restructure build menu

This commit is contained in:
Rob Vermaas 2012-04-13 10:19:15 +02:00
parent 9a1f38e06e
commit 6b65712045

View file

@ -110,24 +110,26 @@
[% INCLUDE makeLink [% INCLUDE makeLink
uri = '#' uri = '#'
title = "Related builds" %] title = "Related builds" %]
<li class="divider"></li> [% IF c.user_exists %]
[% INCLUDE makeLink <li class="divider"></li>
uri = c.uri_for('/build' build.id 'clone')
title = "Clone build" %]
[% IF !available %]
[% ELSIF build.keep %]
[% INCLUDE makeLink [% INCLUDE makeLink
uri = c.uri_for('/build' build.id 'keep' 0) uri = c.uri_for('/build' build.id 'clone')
title = "Unkeep build" %] title = "Clone build" %]
[% ELSE %] [% 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 [% INCLUDE makeLink
uri = c.uri_for('/build' build.id 'keep' 1) uri = c.uri_for('/build' build.id 'restart')
title = "Keep build" %] title = "Restart build" %]
[% END %] [% END %]
[% INCLUDE makeLink
uri = c.uri_for('/build' build.id 'restart')
title = "Restart build" %]
[% END %] [% END %]
[% END %] [% END %]