Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-03-29 20:24:19 +0300
committerMatija Čupić <matteeyah@gmail.com>2018-03-29 20:24:19 +0300
commitddabac46b918611ecaa82ea5af554a7f0f9b7407 (patch)
tree4cf4bc9c3cb64b426b8952b0e3df2197f87ed059 /app/views/projects/jobs
parent490d18691cf9a0a3c1a4668a9da70f87932724e8 (diff)
Move action button titles to respective statuses
Diffstat (limited to 'app/views/projects/jobs')
-rw-r--r--app/views/projects/jobs/_empty_states.html.haml2
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