Changeset - ce9a226e0867
[Not reviewed]
beta
0 4 0
Mads Kiilerich - 13 years ago 2013-03-28 01:10:45
madski@unity3d.com
sort permission lists by (repository) name

This also exhibits too much code in templates and code/template duplication.
4 files changed with 4 insertions and 4 deletions:
0 comments (0 inline, 0 general)
rhodecode/templates/admin/permissions/permissions.html
Show inline comments
 
@@ -119,7 +119,7 @@
 
                    <th class="left">${_('Edit Permission')}</th>
 
                </thead>
 
                <tbody>
 
                %for k in c.perm_user.permissions[section]:
 
                %for k in sorted(c.perm_user.permissions[section], key=lambda s: s.lower):
 
                     <%
 
                     if section != 'global':
 
                         section_perm = c.perm_user.permissions[section].get(k)
rhodecode/templates/admin/users/user_edit.html
Show inline comments
 
@@ -205,7 +205,7 @@
 
                    <th class="left">${_('Edit Permission')}</th>
 
                </thead>
 
                <tbody>
 
                %for k in c.perm_user.permissions[section]:
 
                %for k in sorted(c.perm_user.permissions[section], key=lambda s: s.lower):
 
                     <%
 
                     if section != 'global':
 
                         section_perm = c.perm_user.permissions[section].get(k)
rhodecode/templates/admin/users/user_edit_my_account.html
Show inline comments
 
@@ -56,7 +56,7 @@
 
                  <th class="left">${_('Permission')}</th>
 
              </thead>
 
              <tbody>
 
            %for k in c.rhodecode_user.permissions[section]:
 
            %for k in sorted(c.rhodecode_user.permissions[section], key=lambda s: s.lower):
 
           <%
 
           if section != 'global':
 
               section_perm = c.rhodecode_user.permissions[section].get(k)
rhodecode/templates/admin/users_groups/users_group_edit.html
Show inline comments
 
@@ -186,7 +186,7 @@ ${h.end_form()}
 
                <th class="left">${_('Edit Permission')}</th>
 
            </thead>
 
            <tbody>
 
            %for k in c.users_group.permissions[section]:
 
            %for k in sorted(c.users_group.permissions[section], key=lambda s: s.lower):
 
                 <%
 
                     section_perm = c.users_group.permissions[section].get(k)
 
                     _perm = section_perm.split('.')[-1]
0 comments (0 inline, 0 general)