Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
9cec58667562
Commit
e7cc554c
authored
Oct 13, 2015
by
Kamil Trzcinski
Browse files
Fix retry and cancel URLs
parent
c85e277946f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/models/ci/build.rb
View file @
9cec5866
...
...
@@ -219,13 +219,15 @@ def target_url
def
cancel_url
if
active?
cancel_namespace_project_build_path
(
gl_project
.
namespace
,
gl_project
,
self
,
return_to:
request
.
original_url
)
Gitlab
::
Application
.
routes
.
url_helpers
.
cancel_namespace_project_build_path
(
gl_project
.
namespace
,
gl_project
,
self
,
return_to:
request
.
original_url
)
end
end
def
retry_url
if
commands
.
present?
cancel_namespace_project_build_path
(
gl_project
.
namespace
,
gl_project
,
self
,
return_to:
request
.
original_url
)
Gitlab
::
Application
.
routes
.
url_helpers
.
cancel_namespace_project_build_path
(
gl_project
.
namespace
,
gl_project
,
self
,
return_to:
request
.
original_url
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment