diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2013-01-21 14:40:03 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2013-01-21 14:40:03 +0100 |
commit | 06e326aeb99ab022d80a4550ccd461d0fc95c74e (patch) | |
tree | 20a73a2176d2c2f7fe482675cc8d9543179ec3c5 | |
parent | 267e832fa16029f0ecd1cdaca699d661ddc556e8 (diff) | |
download | esper-testing-06e326aeb99ab022d80a4550ccd461d0fc95c74e.tar.gz esper-testing-06e326aeb99ab022d80a4550ccd461d0fc95c74e.tar.bz2 esper-testing-06e326aeb99ab022d80a4550ccd461d0fc95c74e.tar.xz esper-testing-06e326aeb99ab022d80a4550ccd461d0fc95c74e.zip |
o Showing a message if there where no participants.
-rwxr-xr-x | src/main/java/io/trygvis/esper/testing/Util.java | 2 | ||||
-rwxr-xr-x | src/main/resources/webapp/apps/frontPageApp/buildList.html | 5 |
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> |