Also show number of evaluations of which a build is a part

[?]
Feb 21, 2013, 5:42 PM
MMJYE535PZ6Z2XX4KOA5YZUJE64GUJ62UYBZQRTFOUTWQAXE4APQC

Dependencies

  • [2] FU4GO5VN On build pages, provide a link to the build's first eval
  • [3] K22TMPH5 Make the info tables less compressed
  • [4] 2GUAKGTB Fix indentation of build.tt
  • [*] LBNVQXUB * Build the /build stuff in a separate controller.
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.

Change contents

  • edit in src/lib/Hydra/Controller/Build.pm at line 95
    [2.57]
    [2.57]
    ($c->stash->{nrEvals}) = $c->stash->{build}->jobsetevals->search({ hasnewbuilds => 1 })->count;
  • edit in src/root/build.tt at line 100
    [3.2814][2.381:640]()
    [% IF eval %]
    <tr>
    <th>Part of:</th>
    <td><a href="[% c.uri_for(c.controller('JobsetEval').action_for('view'), [eval.id]) %]">evaluation [% eval.id %]</a></td>
    </tr>
    [% END %]
  • edit in src/root/build.tt at line 111
    [3.3175]
    [3.3175]
    [% IF eval %]
    <tr>
    <th>Part of:</th>
    <td>
    <a href="[% c.uri_for(c.controller('JobsetEval').action_for('view'), [eval.id]) %]">evaluation [% eval.id %]</a>
    [% IF nrEvals > 1 +%] (and [% nrEvals - 1 %] others)[% END %]
    </td>
    </tr>
    [% END %]