diff options
Diffstat (limited to 'app/views/projects/pipelines/charts/_overall.haml')
-rw-r--r-- | app/views/projects/pipelines/charts/_overall.haml | 19 |
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) |