comparison rhodecode/templates/admin/users_groups/users_group_edit.html @ 3623:ce9a226e0867 beta

sort permission lists by (repository) name This also exhibits too much code in templates and code/template duplication.
author Mads Kiilerich <madski@unity3d.com>
date Thu, 28 Mar 2013 01:10:45 +0100
parents 91ff741c4de5
children 4dddb7ee8865
comparison
equal deleted inserted replaced
3622:91ff741c4de5 3623:ce9a226e0867
184 <th class="left">${_('Name')}</th> 184 <th class="left">${_('Name')}</th>
185 <th class="left">${_('Permission')}</th> 185 <th class="left">${_('Permission')}</th>
186 <th class="left">${_('Edit Permission')}</th> 186 <th class="left">${_('Edit Permission')}</th>
187 </thead> 187 </thead>
188 <tbody> 188 <tbody>
189 %for k in c.users_group.permissions[section]: 189 %for k in sorted(c.users_group.permissions[section], key=lambda s: s.lower):
190 <% 190 <%
191 section_perm = c.users_group.permissions[section].get(k) 191 section_perm = c.users_group.permissions[section].get(k)
192 _perm = section_perm.split('.')[-1] 192 _perm = section_perm.split('.')[-1]
193 %> 193 %>
194 <tr> 194 <tr>