diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-03-29 20:24:19 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-03-29 20:24:19 +0300 |
commit | ddabac46b918611ecaa82ea5af554a7f0f9b7407 (patch) | |
tree | 4cf4bc9c3cb64b426b8952b0e3df2197f87ed059 /app/views | |
parent | 490d18691cf9a0a3c1a4668a9da70f87932724e8 (diff) |
Move action button titles to respective statuses
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/jobs/_empty_states.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/jobs/_empty_states.html.haml b/app/views/projects/jobs/_empty_states.html.haml index 4d2c776e538..e5198d047df 100644 --- a/app/views/projects/jobs/_empty_states.html.haml +++ b/app/views/projects/jobs/_empty_states.html.haml @@ -6,4 +6,4 @@ illustration_size: illustration[:size], title: illustration[:title], content: illustration[:content], - 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 + action: detailed_status.has_action? ? link_to(detailed_status.action_button_title, detailed_status.action_path, method: detailed_status.action_method, class: 'btn btn-primary', title: detailed_status.action_button_title) : nil |