summaryrefslogtreecommitdiff
path: root/app/views/ci/charts/_overall.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/ci/charts/_overall.haml')
-rw-r--r--app/views/ci/charts/_overall.haml21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/views/ci/charts/_overall.haml b/app/views/ci/charts/_overall.haml
new file mode 100644
index 00000000000..f522f35a629
--- /dev/null
+++ b/app/views/ci/charts/_overall.haml
@@ -0,0 +1,21 @@
+%fieldset
+ %legend Overall
+ %p
+ Total:
+ %strong= pluralize @project.builds.count(:all), 'build'
+ %p
+ Successful:
+ %strong= pluralize @project.builds.success.count(:all), 'build'
+ %p
+ Failed:
+ %strong= pluralize @project.builds.failed.count(:all), 'build'
+
+ %p
+ Success ratio:
+ %strong
+ #{success_ratio(@project.builds.success, @project.builds.failed)}%
+
+ %p
+ Commits covered:
+ %strong
+ = @project.commits.count(:all)