diff --git a/src/lib/Hydra/Controller/Project.pm b/src/lib/Hydra/Controller/Project.pm index 2a6c6e05..69abfa6b 100644 --- a/src/lib/Hydra/Controller/Project.pm +++ b/src/lib/Hydra/Controller/Project.pm @@ -213,7 +213,8 @@ sub create_view : Chained('project') PathPart('create-view') Args(0) { sub releases : Chained('project') PathPart('releases') Args(0) { my ($self, $c) = @_; $c->stash->{template} = 'releases.tt'; - $c->stash->{releases} = [$c->stash->{project}->releases->all]; + $c->stash->{releases} = [$c->stash->{project}->releases->search({}, + {order_by => ["timestamp DESC"]})]; } diff --git a/src/lib/Hydra/Controller/Release.pm b/src/lib/Hydra/Controller/Release.pm index ba9f0e80..da282a57 100644 --- a/src/lib/Hydra/Controller/Release.pm +++ b/src/lib/Hydra/Controller/Release.pm @@ -21,6 +21,8 @@ sub release : Chained('/') PathPart('release') CaptureArgs(2) { sub view : Chained('release') PathPart('') Args(0) { my ($self, $c) = @_; $c->stash->{template} = 'release.tt'; + $c->stash->{members} = [$c->stash->{release}->releasemembers->search({}, + {order_by => ["description"]})]; } diff --git a/src/root/release.tt b/src/root/release.tt index a262da44..d8ca9d37 100644 --- a/src/root/release.tt +++ b/src/root/release.tt @@ -9,13 +9,13 @@ class="smallLink" href="[% c.uri_for('/release' project.name release.name "edit"
Released on [% INCLUDE renderDateTime timestamp = release.timestamp %].
-[% IF !release.releasemembers %] +[% IF !members %]No builds have been added to this release yet.
[% ELSE %] -[% FOREACH m IN release.releasemembers %] +[% FOREACH m IN members %]