aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-01-21 14:40:03 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2013-01-21 14:40:03 +0100
commit06e326aeb99ab022d80a4550ccd461d0fc95c74e (patch)
tree20a73a2176d2c2f7fe482675cc8d9543179ec3c5
parent267e832fa16029f0ecd1cdaca699d661ddc556e8 (diff)
downloadesper-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-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>