debian-mirror-gitlab/app/views/projects/graphs/ci/_overall.haml

21 lines
514 B
Text
Raw Normal View History

2015-10-24 18:46:33 +05:30
- ci_project = @project.gitlab_ci_project
2015-11-26 14:37:03 +05:30
%h4 Overall stats
%ul
%li
2015-10-24 18:46:33 +05:30
Total:
%strong= pluralize ci_project.builds.count(:all), 'build'
2015-11-26 14:37:03 +05:30
%li
2015-10-24 18:46:33 +05:30
Successful:
%strong= pluralize ci_project.builds.success.count(:all), 'build'
2015-11-26 14:37:03 +05:30
%li
2015-10-24 18:46:33 +05:30
Failed:
%strong= pluralize ci_project.builds.failed.count(:all), 'build'
2015-11-26 14:37:03 +05:30
%li
2015-10-24 18:46:33 +05:30
Success ratio:
%strong
#{success_ratio(ci_project.builds.success, ci_project.builds.failed)}%
2015-11-26 14:37:03 +05:30
%li
2015-10-24 18:46:33 +05:30
Commits covered:
%strong
= ci_project.commits.count(:all)