Mercurial > kallithea
comparison 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 |
comparison
equal
deleted
inserted
replaced
2630:f79320e47e99 | 2631:f597cfb492f9 |
---|---|
167 <table id="tbl_list_${section}"> | 167 <table id="tbl_list_${section}"> |
168 <thead> | 168 <thead> |
169 <tr> | 169 <tr> |
170 <th class="left">${_('Name')}</th> | 170 <th class="left">${_('Name')}</th> |
171 <th class="left">${_('Permission')}</th> | 171 <th class="left">${_('Permission')}</th> |
172 <th class="left">${_('Edit Permission')}</th> | |
172 </thead> | 173 </thead> |
173 <tbody> | 174 <tbody> |
174 %for k in c.perm_user.permissions[section]: | 175 %for k in c.perm_user.permissions[section]: |
175 <% | 176 <% |
176 if section != 'global': | 177 if section != 'global': |
193 %if section == 'global': | 194 %if section == 'global': |
194 ${h.bool2icon(k.split('.')[-1] != 'none')} | 195 ${h.bool2icon(k.split('.')[-1] != 'none')} |
195 %else: | 196 %else: |
196 <span class="perm_tag ${_perm}">${section_perm}</span> | 197 <span class="perm_tag ${_perm}">${section_perm}</span> |
197 %endif | 198 %endif |
198 </td> | 199 </td> |
200 <td> | |
201 %if section == 'repositories': | |
202 <a href="${h.url('edit_repo',repo_name=k,anchor='permissions_manage')}">${_('edit')}</a> | |
203 %elif section == 'repositories_groups': | |
204 <a href="${h.url('edit_repos_group',id=k,anchor='permissions_manage')}">${_('edit')}</a> | |
205 %else: | |
206 -- | |
207 %endif | |
208 </td> | |
199 </tr> | 209 </tr> |
200 %endfor | 210 %endfor |
201 </tbody> | 211 </tbody> |
202 </table> | 212 </table> |
203 </div> | 213 </div> |