From ef34de7603d2eeea2d74050bda9a3d7067b9af78 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Thu, 18 Mar 2010 15:15:14 +0000 Subject: [PATCH] order jobset in project view --- src/lib/Hydra/Controller/Project.pm | 1 + src/root/project.tt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 %] [% INCLUDE renderJobsetName project = project.name jobset = j.name %]