debian-mirror-gitlab/app/views/projects/graphs/ci/_overall.haml
2015-10-24 18:46:33 +05:30

22 lines
517 B
Text

- ci_project = @project.gitlab_ci_project
%fieldset
%legend Overall
%p
Total:
%strong= pluralize ci_project.builds.count(:all), 'build'
%p
Successful:
%strong= pluralize ci_project.builds.success.count(:all), 'build'
%p
Failed:
%strong= pluralize ci_project.builds.failed.count(:all), 'build'
%p
Success ratio:
%strong
#{success_ratio(ci_project.builds.success, ci_project.builds.failed)}%
%p
Commits covered:
%strong
= ci_project.commits.count(:all)