From 06c74085b55536f70532bbba9b48e2c5e6d9ca5f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 15 Aug 2013 03:07:20 +0200 Subject: [PATCH] Make "Add to release" a modal dialog --- src/root/build.tt | 37 ++++++++++++++++++++++++------------- src/root/topbar.tt | 8 +++++++- 2 files changed, 31 insertions(+), 14 deletions(-) diff --git a/src/root/build.tt b/src/root/build.tt index 73dc0c54..b58dbff1 100644 --- a/src/root/build.tt +++ b/src/root/build.tt @@ -192,19 +192,6 @@ - [% IF c.user_exists && available %] -
-
-
- -
- - -
-
-
- [% END %] - [% IF build.buildproducts && !isAggregate %]

Build products

@@ -559,4 +546,28 @@ +[% IF c.user_exists && available && project.releases %] + +[% END %] + + [% END %] diff --git a/src/root/topbar.tt b/src/root/topbar.tt index fd924615..8b92e9ba 100644 --- a/src/root/topbar.tt +++ b/src/root/topbar.tt @@ -1,6 +1,6 @@ [% BLOCK menuItem %]
  • - [% title %] + [% title %]
  • [% END %] @@ -155,6 +155,12 @@ uri = c.uri_for('/build' build.id 'cancel') title = "Cancel build" %] [% END %] + [% IF available && project.releases %] + [% INCLUDE menuItem + uri = "#add-to-release" + title = "Add to release" + modal = 1 %] + [% END %] [% END %] [% END %] [% END %]