Commit e7cc554c authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Fix retry and cancel URLs

parent c85e277946f8
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment