summaryrefslogtreecommitdiff
path: root/app/views/projects/jobs/_empty_states.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/jobs/_empty_states.html.haml')
-rw-r--r--app/views/projects/jobs/_empty_states.html.haml9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/projects/jobs/_empty_states.html.haml b/app/views/projects/jobs/_empty_states.html.haml
new file mode 100644
index 00000000000..e5198d047df
--- /dev/null
+++ b/app/views/projects/jobs/_empty_states.html.haml
@@ -0,0 +1,9 @@
+- detailed_status = @build.detailed_status(current_user)
+- illustration = detailed_status.illustration
+
+= render 'empty_state',
+ illustration: illustration[:image],
+ illustration_size: illustration[:size],
+ title: illustration[:title],
+ content: illustration[:content],
+ 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