diff --git a/src/root/product-list.tt b/src/root/product-list.tt index 5017f03d..64c60417 100644 --- a/src/root/product-list.tt +++ b/src/root/product-list.tt @@ -2,13 +2,9 @@ [% BLOCK renderProductList -%] - [% # Work around a strange bug: build.buildproducts.size returns 3 when the actual size is 1. - nrProducts = 0; FOREACH product IN build.buildproducts; nrProducts = nrProducts + 1; END - %] -
Links to latest: |
- [% IF nrProducts > 1 %]
+ [% IF build.buildproducts.count > 1 %]
[% uri2 = "${c.uri_for(latestRoot.join('/') 'download-by-type' product.type product.subtype)}" %]
[% uri2 %]
@@ -210,7 +206,7 @@ |
---|---|
- Something of type [% product.type %] + Something of type [% product.type %] [% product %] |