aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/main/java/io/trygvis/esper/testing/Util.java2
-rwxr-xr-xsrc/main/resources/webapp/apps/frontPageApp/buildList.html5
2 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/io/trygvis/esper/testing/Util.java b/src/main/java/io/trygvis/esper/testing/Util.java
index 1bba36c..2970982 100755
--- a/src/main/java/io/trygvis/esper/testing/Util.java
+++ b/src/main/java/io/trygvis/esper/testing/Util.java
@@ -78,7 +78,7 @@ public class Util {
// -----------------------------------------------------------------------
public static List<String> ifEmpty(List<String> inputs, String defaultValue) {
- if (inputs.isEmpty()) {
+ if (!inputs.isEmpty()) {
return inputs;
}
diff --git a/src/main/resources/webapp/apps/frontPageApp/buildList.html b/src/main/resources/webapp/apps/frontPageApp/buildList.html
index d069736..7e795e4 100755
--- a/src/main/resources/webapp/apps/frontPageApp/buildList.html
+++ b/src/main/resources/webapp/apps/frontPageApp/buildList.html
@@ -32,9 +32,12 @@
{{{true: 'SUCCESS', false: 'FAILURE'}[build.build.success]}}
</h4>
- <span ng-repeat="p in build.participants">
+ <span ng-repeat="p in build.participants" ng-show="build.participants">
<dogtag-xl person="p"></dogtag-xl>
</span>
+ <p ng-hide="build.participants">
+ No participants.
+ </p>
<a class="btn pull-right" href="#/build/{{build.build.uuid}}"><i class="icon-chevron-right"></i></a>
</td>
</tr>