Merge pull request #379 from domenkozar/sort-inputs-tables

Sort inputs table
This commit is contained in:
Eelco Dolstra 2016-08-12 14:10:14 +02:00 committed by GitHub
commit 71440e7bd7
2 changed files with 2 additions and 2 deletions

View file

@ -47,7 +47,7 @@
<tr><th></th><th>Input name</th><th>Type</th><th style="width: 50%">Value</th><th>Notify committers</th></tr>
</thead>
<tbody class="inputs">
[% inputs = createFromEval ? eval.jobsetevalinputs : jobset.jobsetinputs; FOREACH input IN inputs %]
[% inputs = createFromEval ? eval.jobsetevalinputs : jobset.jobsetinputs; FOREACH input IN inputs.sort('name') %]
[% INCLUDE renderJobsetInput input=input baseName="input-$input.name" %]
[% END %]
<tr>

View file

@ -33,7 +33,7 @@
<tr><th>Input name</th><th>Type</th><th>Values</th></tr>
</thead>
<tbody class="inputs">
[% FOREACH input IN jobset.jobsetinputs %]
[% FOREACH input IN jobset.jobsetinputs.sort('name') %]
[% INCLUDE renderJobsetInput input=input baseName="input-$input.name" %]
[% END %]
</tbody>