.row
	.col-md-12
		%h1.page-header= "#{user.name}/#{repo.name}##{build.number}"
.row-fluid
	.panel.panel-default
		.panel-heading
			- case build.status
			- when :failed
				.fa.fa-warning.fa-fw{:style => 'color: firebrick'}
				failing (
				%a{:href => "/repo/#{repo.name}/builds/#{build.number}/retry"}>retry
				)
			- when :success
				%i.fa.fa-check.fa-fw{:style => 'color: green'}
				succeeding
			- else
				%i.fa.fa-gear.fa-fw
				working
		.panel-body
			.col-md-8
				%pre{:id => 'build-log', :style => 'width: 100%'}= build.log
				%script{:src => '/js/ansi_up.js'}
				%script{:type => 'text/javascript'}= "var log = document.getElementById('build-log');log.innerHTML = ansi_up.ansi_to_html(log.innerHTML);"
.row
	.col-md-12
		%h1.page-header= "#{user.name}/#{repo.name}##{build.number}"
.row-fluid
	.panel.panel-default
		.panel-heading
			- case build.status
			- when :failed
				.fa.fa-warning.fa-fw{:style => 'color: firebrick'}
				failing (
				%a{:href => "/repo/#{repo.name}/builds/#{build.number}/retry"}>retry
				)
			- when :success
				%i.fa.fa-check.fa-fw{:style => 'color: green'}
				succeeding
			- else
				%i.fa.fa-gear.fa-fw
				working
		.panel-body
			.col-md-8
				%pre.lys-build-log{:lys_build => "#{repo.name} #{build.number}", :style => 'width: 100%'}= build.log
				%script{:src => '/js/ansi_up.js'}
				:javascript
					var logs = document.getElementsByClassName('lys-build-log');
					for(var i = 0; i < logs.length; i++) {
						logs[i].innerHTML = ansi_up.ansi_to_html(logs[i].innerHTML);
					}
Build info in log DOM
Build info in log DOM
