blob: a5e765a3b9f67c8ff46d301623d1ffdbbfeac6ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
%h3
Project: #{link_to @project.name, @project} → Stats
%p.lead Some stats related to the project
%fieldset
%legend Builds
%p
Total:
%strong= pluralize @project.builds.count, 'build'
%p
Successful:
%strong= pluralize @project.builds.success.count, 'build'
%p
Failed:
%strong= pluralize @project.builds.failed.count, 'build'
%p
Success ratio:
%strong
#{success_ratio(@project)}%
%p
Commits covered:
%strong
= @project.builds.latest_sha.count
|