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:
authorAlfredo Sumaran <alfredo@gitlab.com>2016-11-16 02:38:48 +0300
committerAlfredo Sumaran <alfredo@gitlab.com>2016-11-21 21:49:19 +0300
commitbbd1c788621e3e186f37c7d43d16915f68c3576a (patch)
tree88a46212fdf4fb6feeef6f165f86478506468af2 /app/views/projects
parent20efd43f1670ed9bca9912a2fa2ee70b12a24fdf (diff)
Show friendly message when stage has no data
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/cycle_analytics/_empty_stage.html.haml12
-rw-r--r--app/views/projects/cycle_analytics/show.html.haml2
2 files changed, 13 insertions, 1 deletions
diff --git a/app/views/projects/cycle_analytics/_empty_stage.html.haml b/app/views/projects/cycle_analytics/_empty_stage.html.haml
new file mode 100644
index 00000000000..f839ec9c018
--- /dev/null
+++ b/app/views/projects/cycle_analytics/_empty_stage.html.haml
@@ -0,0 +1,12 @@
+.empty-stage-container
+ .empty-stage
+ .icon-no-data
+ = render "shared/icons/icon_no_data.svg"
+ %h4 We don’t have enough data to show this stage.
+ %p
+ The test phase measures the median time to run the entire pipeline for that project.
+ It’s related to the time GitLab CI takes to run every job for the commits pushed
+ to that merge request defined in the previous stage.
+ Learn more about the
+ %a{ :href => "https://docs.gitlab.com/ce/user/project/cycle_analytics.html" }
+ expected workflow and calculations.
diff --git a/app/views/projects/cycle_analytics/show.html.haml b/app/views/projects/cycle_analytics/show.html.haml
index 8da0fbba783..195b10e0779 100644
--- a/app/views/projects/cycle_analytics/show.html.haml
+++ b/app/views/projects/cycle_analytics/show.html.haml
@@ -90,6 +90,6 @@
%template{ "v-if" => "isLoadingStage" }
= icon("spinner spin", "v-show" => "isLoadingStage")
%template{ "v-if" => "isEmptyStage" }
- %p No results
+ = render partial: "empty_stage"
%template{ "v-if" => "state.items.length && !isLoadingStage && !isEmptyStage" }
%component{ ":is" => "currentStage.component", ":stage" => "currentStage", ":items" => "state.items" }