diff --git a/src/lib/Hydra/Controller/Project.pm b/src/lib/Hydra/Controller/Project.pm index d86bdf69..65d4e0ee 100644 --- a/src/lib/Hydra/Controller/Project.pm +++ b/src/lib/Hydra/Controller/Project.pm @@ -14,6 +14,7 @@ sub project : Chained('/') PathPart('project') CaptureArgs(1) { or notFound($c, "Project $projectName doesn't exist."); $c->stash->{project} = $project; + $c->stash->{jobsets} = [$project->jobsets->search({},{ order_by => "name" })]; } diff --git a/src/root/project.tt b/src/root/project.tt index a5cc5dab..03f4f96c 100644 --- a/src/root/project.tt +++ b/src/root/project.tt @@ -37,7 +37,7 @@
- [% FOREACH j IN project.jobsets %] + [% FOREACH j IN jobsets %]