Skip to content

Commit

Permalink
Only show build output if the build failed
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Aug 10, 2009
1 parent d345bff commit 230bfa6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/cijoe/views/template.erb
Expand Up @@ -239,7 +239,9 @@ ul.posts {
<% if joe.last_build %>
<li><span class="date"><%= pretty_time(joe.last_build.finished_at) %></span> &raquo; Built <a href="<%= joe.url %>/commits/<%= joe.last_build.sha %>"><%= joe.last_build.short_sha %></a> <span class="<%= joe.last_build.status %>">(<%= joe.last_build.status %>)</span></li>
<li><pre class="terminal"><code><%=bash_color_codes h(joe.last_build.output) %></code></pre></li>
<% if joe.last_build.failed? %>
<li><pre class="terminal"><code><%=bash_color_codes h(joe.last_build.output) %></code></pre></li>
<% end %>
<% end %>
</ul>
</div>
Expand Down

0 comments on commit 230bfa6

Please sign in to comment.