Implement new create and manager trigger UI
Implements the new trigger setup user interface, which is now a linear workflow found on its own page, rather than a tiny modal dialog Fixes #1187
This commit is contained in:
parent
21b09a7451
commit
8e863b8cf5
47 changed files with 1835 additions and 1068 deletions
|
@ -183,6 +183,13 @@ def confirm_invite():
|
|||
def repository(path):
|
||||
return index('')
|
||||
|
||||
|
||||
@web.route('/repository/<path:path>/trigger/<trigger>', methods=['GET'])
|
||||
@no_cache
|
||||
def buildtrigger(path, trigger):
|
||||
return index('')
|
||||
|
||||
|
||||
@web.route('/starred/')
|
||||
@no_cache
|
||||
def starred():
|
||||
|
@ -659,9 +666,7 @@ def attach_custom_build_trigger(namespace_name, repo_name):
|
|||
None, current_user.db_user())
|
||||
|
||||
repo_path = '%s/%s' % (namespace_name, repo_name)
|
||||
full_url = '%s%s%s' % (url_for('web.repository', path=repo_path), '?tab=builds&newtrigger=',
|
||||
trigger.uuid)
|
||||
|
||||
full_url = url_for('web.buildtrigger', path=repo_path, trigger=trigger.uuid)
|
||||
logger.debug('Redirecting to full url: %s', full_url)
|
||||
return redirect(full_url)
|
||||
|
||||
|
|
Reference in a new issue