diff pylons_app/templates/base/base.html @ 256:c49010829e4d

fixed sorting in repo switcher
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 05 Jun 2010 10:49:28 +0200
parents 8d0c7276db3d
children dee1913f7f5a
line wrap: on
line diff
--- a/pylons_app/templates/base/base.html	Sat Jun 05 10:45:12 2010 +0200
+++ b/pylons_app/templates/base/base.html	Sat Jun 05 10:49:28 2010 +0200
@@ -93,8 +93,8 @@
 					<a id="repo_switcher" title="${_('Switch repository')}" href="#">&darr;</a>
 					<div id="switch_repos" style="display:none;position: absolute;width: 150px;height: 25px">
 						<select id="repos_list" size="=10">
-						%for repo in c.cached_repo_list.values():
-							<option value="${repo.name}">${repo.name}</option>
+						%for repo in sorted(x.name.lower() for x in c.cached_repo_list.values()):
+							<option value="${repo}">${repo}</option>
 						%endfor
 						</select>
 					</div>