debian-mirror-gitlab/app/views/ci/charts/_overall.haml

22 lines
463 B
Text
Raw Normal View History

2015-09-25 12:07:36 +05:30
%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)