* Only include the system type in URLs if there are multiple jobs with

[?]
Mar 7, 2010, 11:38 AM
POZRGZOU5A7ROG2H6SRTP4QU52ARQYNJLG3QKTZ476S2SKY323RQC

Dependencies

  • [2] 3Y7AFJSS * Support linking to the latest job in a view for a specific platform, e.g.
  • [3] 4BXTDMSA * I should test before committing.
  • [4] KZAP6QPO
  • [*] P5X4P6VK * Renaming "release sets" to "views" (not finished yet). Having
  • [*] OW6XV2YS * Allow a view result to be saved as a release.
  • [*] JFZNAYJX * Showing releases.

Change contents

  • edit in src/lib/Hydra/Controller/View.pm at line 164
    [7.102]
    [7.102]
    my %jobNames;
    $jobNames{$_->{job}->job}++ foreach @{$result->{jobs}};
    $c->stash->{jobNames} = \%jobNames;
  • replacement in src/root/view-result.tt at line 30
    [3.37][2.815:955]()
    [% INCLUDE renderProductList build=j.build latestRoot=['/view' project.name view.name 'latest' "${j.job.job}-${j.build.system}"] %]
    [3.37]
    [3.154]
    [% p = jobNames.${j.job.job} > 1 ? "-${j.build.system}" : "";
    INCLUDE renderProductList build=j.build latestRoot=['/view' project.name view.name 'latest' "${j.job.job}${p}"]
    %]