##// END OF EJS Templates
sort permission lists by (repository) name...
Mads Kiilerich -
r3623:ce9a226e beta
parent child Browse files
Show More
@@ -119,7 +119,7 b''
119 <th class="left">${_('Edit Permission')}</th>
119 <th class="left">${_('Edit Permission')}</th>
120 </thead>
120 </thead>
121 <tbody>
121 <tbody>
122 %for k in c.perm_user.permissions[section]:
122 %for k in sorted(c.perm_user.permissions[section], key=lambda s: s.lower):
123 <%
123 <%
124 if section != 'global':
124 if section != 'global':
125 section_perm = c.perm_user.permissions[section].get(k)
125 section_perm = c.perm_user.permissions[section].get(k)
@@ -205,7 +205,7 b''
205 <th class="left">${_('Edit Permission')}</th>
205 <th class="left">${_('Edit Permission')}</th>
206 </thead>
206 </thead>
207 <tbody>
207 <tbody>
208 %for k in c.perm_user.permissions[section]:
208 %for k in sorted(c.perm_user.permissions[section], key=lambda s: s.lower):
209 <%
209 <%
210 if section != 'global':
210 if section != 'global':
211 section_perm = c.perm_user.permissions[section].get(k)
211 section_perm = c.perm_user.permissions[section].get(k)
@@ -56,7 +56,7 b''
56 <th class="left">${_('Permission')}</th>
56 <th class="left">${_('Permission')}</th>
57 </thead>
57 </thead>
58 <tbody>
58 <tbody>
59 %for k in c.rhodecode_user.permissions[section]:
59 %for k in sorted(c.rhodecode_user.permissions[section], key=lambda s: s.lower):
60 <%
60 <%
61 if section != 'global':
61 if section != 'global':
62 section_perm = c.rhodecode_user.permissions[section].get(k)
62 section_perm = c.rhodecode_user.permissions[section].get(k)
@@ -186,7 +186,7 b''
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]
General Comments 0
You need to be logged in to leave comments. Login now