Only show "Running build steps" if there are running build steps

This commit is contained in:
Eelco Dolstra 2012-04-15 20:12:35 +00:00
parent 2c6a38760b
commit 1e228267be
2 changed files with 3 additions and 3 deletions

View file

@ -160,9 +160,9 @@
[% END %] [% END %]
[% IF !build.finished %] [% IF !build.finished && build.buildsteps.size > 0 %]
[% INCLUDE renderBuildSteps type="Running" %] [% INCLUDE renderBuildSteps type="Running" %]
[% END %] [% END %]
[% IF build.finished %] [% IF build.finished %]
[% IF build.buildsteps && build.buildstatus != 0 && build.buildstatus != 6 %] [% IF build.buildsteps && build.buildstatus != 0 && build.buildstatus != 6 %]

View file

@ -3,7 +3,7 @@
<h1>Hydra Queue</h1> <h1>Hydra Queue</h1>
<p>[ <a href="[% c.uri_for('/status') %]">Running buildsteps</a> ]</p> <p>[ <a href="[% c.uri_for('/status') %]">Running build steps</a> ]</p>
[% IF flashMsg %] [% IF flashMsg %]
<p class="error">[% flashMsg %]</p> <p class="error">[% flashMsg %]</p>