Commit 7dbb1952 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Use local_assigns

parent d92054dd
......@@ -14,7 +14,7 @@
= icon("play")
%span= action.name.humanize
- if defined?(allow_rollback) && allow_rollback
- if local_assigns.fetch(:allow_rollback, false)
= link_to [:retry, @project.namespace.becomes(Namespace), @project, deployment.deployable], method: :post, class: 'btn btn-build' do
- if deployment.last?
Retry
......
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