diff rhodecode/templates/admin/users/user_edit.html @ 2631:f597cfb492f9 beta

Added quick links for editing permissions for users from permission overview
author Marcin Kuzminski <marcin@python-works.com>
date Wed, 18 Jul 2012 22:07:46 +0200
parents 7ae36df760ce
children 4dbc00e9d0c3
line wrap: on
line diff
--- a/rhodecode/templates/admin/users/user_edit.html	Wed Jul 18 19:09:12 2012 +0200
+++ b/rhodecode/templates/admin/users/user_edit.html	Wed Jul 18 22:07:46 2012 +0200
@@ -169,6 +169,7 @@
                     <tr>
                     <th class="left">${_('Name')}</th>
                     <th class="left">${_('Permission')}</th>
+                    <th class="left">${_('Edit Permission')}</th>
                 </thead>
                 <tbody>
                 %for k in c.perm_user.permissions[section]:
@@ -195,7 +196,16 @@
                             %else:
                              <span class="perm_tag ${_perm}">${section_perm}</span>
                             %endif
-                         </td>
+                        </td>
+                        <td>
+                            %if section == 'repositories':
+                                <a href="${h.url('edit_repo',repo_name=k,anchor='permissions_manage')}">${_('edit')}</a>
+                            %elif section == 'repositories_groups':
+                                <a href="${h.url('edit_repos_group',id=k,anchor='permissions_manage')}">${_('edit')}</a>
+                            %else:
+                                --
+                            %endif                        
+                        </td>
                     </tr>
                 %endfor
                 </tbody>