Revert sorting build products

[?]
Apr 30, 2012, 8:17 PM
RRCGVQLWXSQ6O7J63ALSRSESZL7SW7WYRO7VMYHIHG2Y53AVAF4QC

Dependencies

  • [2] ELABMHJI * hydra: layout changes
  • [3] 42CJF4V5 Ensure build products are in sorted order
  • [4] SMM4HQTP * Put actions related to builds under /build (e.g. /log/<buildid>
  • [5] VVDQKVNL
  • [6] MAOFG2TD * Allow omitting the product number if there is only one product in a
  • [7] Y35C6GHH * One-click installs.
  • [8] XJFHFZCA * Provide some redirects to build products by type so that we can for
  • [9] H3DLVNCJ * Support redirecting to some job of a release. For instance, this
  • [10] JFZNAYJX * Showing releases.

Change contents

  • edit in src/root/product-list.tt at line 5
    [4.3131][4.130:327]()
    [% # 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
    %]
  • replacement in src/root/product-list.tt at line 7
    [4.3159][3.0:69]()
    [% FOREACH product IN build.buildproducts.nsort('productnr') -%]
    [4.3159]
    [4.2173]
    [% FOREACH product IN build.buildproducts -%]
  • replacement in src/root/product-list.tt at line 142
    [4.5285][4.328:368]()
    [% IF nrProducts > 1 %]
    [4.5285]
    [4.368]
    [% IF build.buildproducts.count > 1 %]
  • replacement in src/root/product-list.tt at line 209
    [2.833][4.6819:6873](),[4.2666][4.6819:6873](),[4.6819][4.6819:6873]()
    Something of type <tt>[% product.type %]</tt>
    [2.833]
    [2.834]
    Something of type <tt>[% product.type %]</tt> [% product %]