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:
Diffstat (limited to 'app/views/projects/pipelines/charts/_overall.haml')
-rw-r--r--app/views/projects/pipelines/charts/_overall.haml19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/views/projects/pipelines/charts/_overall.haml b/app/views/projects/pipelines/charts/_overall.haml
new file mode 100644
index 00000000000..edc4f7b079f
--- /dev/null
+++ b/app/views/projects/pipelines/charts/_overall.haml
@@ -0,0 +1,19 @@
+%h4 Overall stats
+%ul
+ %li
+ Total:
+ %strong= pluralize @project.builds.count(:all), 'build'
+ %li
+ Successful:
+ %strong= pluralize @project.builds.success.count(:all), 'build'
+ %li
+ Failed:
+ %strong= pluralize @project.builds.failed.count(:all), 'build'
+ %li
+ Success ratio:
+ %strong
+ #{success_ratio(@project.builds.success, @project.builds.failed)}%
+ %li
+ Commits covered:
+ %strong
+ = @project.pipelines.count(:all)