gitlab-org--gitlab-foss/app/views/projects/graphs/ci/_overall.haml
Dmitriy Zaporozhets eae27d1ecb Move CI charts to project graphs area
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2015-09-23 16:24:46 +02:00

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)