Show links on products of type "doc"

[?]
May 29, 2013, 9:39 AM
TPSX6J6WJSHL54W4PE5JWKYOQXIYCUPXV5M6TYH4R67HSKU6OAOAC

Dependencies

  • [2] 3ZAJ2ZRP Use popovers for the product list help/details
  • [3] GDCB4LBP Always show the links related to the build product.
  • [4] MAOFG2TD * Allow omitting the product number if there is only one product in a
  • [5] OW6XV2YS * Allow a view result to be saved as a release.
  • [6] RRCGVQLW Revert sorting build products
  • [7] JFZNAYJX * Showing releases.
  • [8] XJFHFZCA * Provide some redirects to build products by type so that we can for
  • [9] SMM4HQTP * Put actions related to builds under /build (e.g. /log/<buildid>
  • [10] 3PNG7NIB Remove trailing whitespace
  • [11] H3DLVNCJ * Support redirecting to some job of a release. For instance, this
  • [12] OEPUOUNB Using twitter bootstrap for more consistent looks for Hydra
  • [*] VVDQKVNL
  • [*] 6KIJX24R Get rid of unnecessary [%- and -%] tags
  • [*] ELABMHJI * hydra: layout changes

Change contents

  • edit in src/root/product-list.tt at line 3
    [14.31]
    [15.6414]
    [% BLOCK renderProductLinks %]
    <tr>
    <th>URL:</th>
    <td><a href="[% uri %]"><tt>[% uri %]</tt></a></td>
    </tr>
    [% IF latestRoot %]
    <tr>
    <th>Links to latest:</th>
    <td>
    [% uri2 = "${c.uri_for(latestRoot.join('/') 'download-by-type' product.type product.subtype)}" %]
    <a href="[% uri2 %]"><tt>[% uri2 %]</tt></a>
    <br />
    [% uri2 = "${c.uri_for(latestRoot.join('/') 'download' product.productnr)}" %]
    <a href="[% uri2 %]"><tt>[% uri2 %]</tt></a>
    </td>
    </tr>
    [% END %]
    [% END %]
  • replacement in src/root/product-list.tt at line 147
    [2.1733][4.5221:5266](),[4.5221][4.5221:5266](),[4.5266][4.1493:1577](),[4.1577][4.1300:1332](),[4.1332][4.31304:31321](),[4.31321][4.1608:1648](),[4.1608][4.1608:1648](),[4.1648][4.5266:5285](),[4.5266][4.5266:5285](),[4.5285][3.0:354](),[3.354][4.5498:5536](),[4.927][4.5498:5536](),[4.2097][4.5498:5536](),[4.5498][4.5498:5536](),[4.5536][4.1333:1355]()
    <tr>
    <th>URL:</th>
    <td><a href="[% uri %]"><tt>[% uri %]</tt></a></td>
    </tr>
    [% IF latestRoot %]
    <tr>
    <th>Links to latest:</th>
    <td>
    [% uri2 = "${c.uri_for(latestRoot.join('/') 'download-by-type' product.type product.subtype)}" %]
    <a href="[% uri2 %]"><tt>[% uri2 %]</tt></a>
    <br />
    [% uri2 = "${c.uri_for(latestRoot.join('/') 'download' product.productnr)}" %]
    <a href="[% uri2 %]"><tt>[% uri2 %]</tt></a>
    </td>
    </tr>
    [% END %]
    [2.1733]
    [4.5536]
    [% INCLUDE renderProductLinks %]
  • edit in src/root/product-list.tt at line 195
    [4.6793]
    [16.766]
    [% WRAPPER makePopover title="Details" classes="btn-mini" %]
    <table class="info-table">
    [% INCLUDE renderProductLinks %]
    </table>
    [% END %]