forked from integrity/integrity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_build_info.haml
31 lines (28 loc) · 857 Bytes
/
_build_info.haml
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
27
28
29
30
31
%h1&= build.human_status
%form{ :action => build_path(build), :method => :post }
%p.submit
- if build.completed? and build.project.name == 'PRISM Acceptance'
%a.button{ :href => build_report_path(build) } Report
%button{ :type => :submit, :title => "Rebuild this commit" }<
Rebuild
%blockquote
%p&= build.message
%p.meta<
%span.who<
&== by: #{build.author}
|
%span.when{ :title => build.committed_at }<
&= pretty_date build.committed_at
- if build.project.github?
|
%span.github<
%a{ :href => github_commit_url(build) } view on GitHub
- if build.completed?
- if build.project.name == 'PRISM Acceptance'
%h2 Test Result:
%iframe{ :src => build_report_url(build) }
- else
%h2 Build Output:
%pre.output
:preserve
#{bash_color_codes h(build.output)}