order jobset in project view
This commit is contained in:
parent
abfd6507b2
commit
ef34de7603
|
@ -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" })];
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue