builds drop down menu, show latest build first
Emanuel Haupt
ehaupt at FreeBSD.org
Fri Nov 11 05:19:05 EST 2011
Emanuel Haupt <ehaupt at freebsd.org> wrote:
> In the latest release (3.4) the builds drop down menu is now sorted
> alphabetically. I think it would be more intuitive to list the latest
> possible build first since that's likely the release we care about the
> most. Please consider the following patch.
>
> Emanuel
Opps, the patch got stripped, here again inline:
--- patch begins here ---
--- list_tinderd_queue.tpl.orig 2011-11-11 09:38:52.000000000 +0100
+++ list_tinderd_queue.tpl 2011-11-11 09:38:19.000000000 +0100
@@ -17,7 +17,7 @@
<td>
<select name="filter_build_id">
<option></option>
-<?php foreach($all_builds as $build) {?>
+<?php foreach(array_reverse($all_builds, true) as $build) {?>
<option value="<?php echo $build['build_id']?>" <?php if ($build_id == $build['build_id']) {?>selected="selected"<?php }?> ><?php echo $build['build_name']?></option>
<?php }?>
</select>
@@ -81,7 +81,7 @@
<td>
<br />
<select name="new_build_id">
- <?php foreach($allowed_builds as $build) {?>
+ <?php foreach(array_reverse($allowed_builds, true) as $build) {?>
<option value="<?php echo $build['build_id']?>" <?php if ($new_build_id == $build['build_id']) {?>selected<?php }?> ><?php echo $build['build_name']?></option>
<?php }?>
</select>
@@ -227,7 +227,7 @@
<tr>
<td>
<select name="new_build_id">
- <?php foreach($allowed_builds as $build) {?>
+ <?php foreach(array_reverse($allowed_builds, true) as $build) {?>
<option value="<?php echo $build['build_id']?>" <?php if ($new_build_id == $build['build_id']) {?>selected<?php }?> ><?php echo $build['build_name']?></option>
<?php }?>
</select>
--- patch ends here ---
More information about the tinderbox-list
mailing list