Mercurial > treepkg
comparison contrib/sawmill/web/templates/overview.html @ 470:a4bf8280ed0b
sawmill: Sort treepkgs in overview by description
author | Sascha Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 10 Sep 2010 09:30:48 +0000 |
parents | 333232953771 |
children | d8012571f9e1 |
comparison
equal
deleted
inserted
replaced
469:b207d63f305a | 470:a4bf8280ed0b |
---|---|
68 <td valign="top" width="99%" bgcolor="white"> | 68 <td valign="top" width="99%" bgcolor="white"> |
69 <!-- end main body row --> | 69 <!-- end main body row --> |
70 <div style="text-align: right"><a href="http://wald.intevation.de/">...to WALD source code repository</a></div> | 70 <div style="text-align: right"><a href="http://wald.intevation.de/">...to WALD source code repository</a></div> |
71 | 71 |
72 <% | 72 <% |
73 for treepkg, description in descriptions: | 73 for treepkg, description in sorted(descriptions, key=lambda x: x[1]): |
74 # for all descriptions | 74 # for all descriptions |
75 %> | 75 %> |
76 <div style="magin:5px;border-bottom:1px solid #DDDDDD;padding:5px;font-weight:bold; font-size: 16pt"> | 76 <div style="magin:5px;border-bottom:1px solid #DDDDDD;padding:5px;font-weight:bold; font-size: 16pt"> |
77 <a href=<%= quoteattr("details.py?treepkg=%s" % treepkg) %>><%= escape(description) %></a> | 77 <a href=<%= quoteattr("details.py?treepkg=%s" % treepkg) %>><%= escape(description) %></a> |
78 </div> | 78 </div> |