order jobset in project view

This commit is contained in:
Rob Vermaas 2010-03-18 15:15:14 +00:00
parent abfd6507b2
commit ef34de7603
2 changed files with 2 additions and 1 deletions

View file

@ -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" })];
}

View file

@ -37,7 +37,7 @@
</tr>
</thead>
<tbody>
[% FOREACH j IN project.jobsets %]
[% FOREACH j IN jobsets %]
<tr class="clickable [% IF odd %] odd [% END; odd = !odd %]"
onclick="window.location = '[% c.uri_for('/jobset' project.name j.name) %]'">
<td>[% INCLUDE renderJobsetName project = project.name jobset = j.name %]</td>