Move action link to build extended status illustration

This commit is contained in:
Matija Čupić 2018-03-28 13:51:30 +02:00
parent 0969f19849
commit c48f33c5be
No known key found for this signature in database
GPG Key ID: 4BAF84FFACD2E5DE
2 changed files with 3 additions and 1 deletions

View File

@ -6,4 +6,4 @@
illustration_size: illustration[:size],
title: illustration[:title],
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

View File

@ -20,6 +20,8 @@ module Gitlab
size: 'svg-394',
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'),
action_path: action_path,
action_method: action_method
}
end