From 75c8d6ee330715d5fd6b0fb45d9812e8465286ba Mon Sep 17 00:00:00 2001 From: Derek Kastner Date: Thu, 24 Jun 2010 15:12:11 -0400 Subject: [PATCH] Syntax fixes --- views/_build_info.haml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/views/_build_info.haml b/views/_build_info.haml index a41f2136..8bf9f37d 100644 --- a/views/_build_info.haml +++ b/views/_build_info.haml @@ -2,7 +2,8 @@ %form{ :action => build_path(build), :method => :post } %p.submit - %a.button{ :href => build_report_path(@build) } Report + - 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 @@ -20,9 +21,9 @@ %a{ :href => github_commit_url(build) } view on GitHub - if build.completed? - - if @build.project.name == 'PRISM Acceptance' + - if build.project.name == 'PRISM Acceptance' %h2 Test Result: - %iframe{ :src => build_report_url(@build) } + %iframe{ :src => build_report_url(build) } - else %h2 Build Output: %pre.output