* Allow the description of a release member to be edited, and to

[?]
Oct 26, 2009, 12:04 PM
GPHLV42M5EGNMSMFVZ54H3LY6QD5R4FE43565A7HJMI3V23FPDCAC

Dependencies

  • [2] RJICSUYG * Align the apply/delete buttons.
  • [3] KXGOUX7P * Creating releases.
  • [4] Z6MDQIGO * A quick (non-Web 2.0) interface to manually add builds to a release.
  • [5] AS2OXLRM * Editing releases.
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.
  • [*] IK53RV4V

Change contents

  • edit in src/lib/Hydra/Controller/Release.pm at line 38
    [3.1803]
    [3.340]
    $release->releasemembers->delete_all;
    foreach my $param (keys %{$c->request->params}) {
    next unless $param =~ /^member-(\d+)-description$/;
    my $buildId = $1;
    my $description = trim $c->request->params->{"member-$buildId-description"};
    $release->releasemembers->create({ build => $buildId, description => $description });
    }
  • replacement in src/lib/Hydra/Controller/Release.pm at line 61
    [2.7][2.7:60]()
    if ($c->request->params->{action} eq "delete") {
    [2.7]
    [2.60]
    if (($c->request->params->{action} || "") eq "delete") {
  • edit in src/root/edit-release.tt at line 21
    [2.588]
    [3.1239]
    <p><em>Note:</em> to add a build to this release, go to the build’s
    information page and click on “Add to release”.</p>
    [% FOREACH m IN release.releasemembers %]
    <div class="releaseMember">
    <h4>Build [% m.build.id %] <button type="button" onclick='$(this).parents(".releaseMember").remove()'><img src="/static/images/failure.gif" alt="Delete input" /></button></h4>
  • replacement in src/root/edit-release.tt at line 31
    [3.1240][2.589:660]()
    <p><button type="button" class="add-member">Add a build</button></p>
    [3.1240]
    [3.1786]
    <table class="layoutTable">
    <tr>
    <th>Label:</th>
    <td><input type="text" class="string longString" name="member-[% m.build.id %]-description" [% HTML.attributes(value => m.description) %] /></td>
    </tr>
    </table>
    </div>
    [% END %]
  • replacement in src/root/edit-release.tt at line 42
    [3.1787][2.661:804]()
    <p><em>Note:</em> to add a build to this release, you can also go to
    the build’s information page and click on “Add to release”.</p>
    [3.1787]
    [3.2184]
    <hr />
  • edit in src/root/static/css/hydra.css at line 140
    [8.3096]
    [8.3096]
    }
    input.longString {
    width: 40em;