Move action link to build extended status illustration
This commit is contained in:
parent
0969f19849
commit
c48f33c5be
|
|
@ -6,4 +6,4 @@
|
||||||
illustration_size: illustration[:size],
|
illustration_size: illustration[:size],
|
||||||
title: illustration[:title],
|
title: illustration[:title],
|
||||||
content: illustration[:content],
|
content: illustration[:content],
|
||||||
action: @build.playable? ? link_to(_("Trigger this manual action"), detailed_status.action_path, method: detailed_status.action_method, class: 'btn btn-primary', title: _("Trigger this manual action")) : nil
|
action: illustration[:action_path] ? link_to(_("Trigger this manual action"), illustration[:action_path], method: illustration[:action_method], class: 'btn btn-primary', title: _("Trigger this manual action")) : nil
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,8 @@ module Gitlab
|
||||||
size: 'svg-394',
|
size: 'svg-394',
|
||||||
title: _('This job requires a manual action'),
|
title: _('This job requires a manual action'),
|
||||||
content: _('This job depends on a user to trigger its process. Often they are used to deploy code to production environments'),
|
content: _('This job depends on a user to trigger its process. Often they are used to deploy code to production environments'),
|
||||||
|
action_path: action_path,
|
||||||
|
action_method: action_method
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue