comparison rhodecode/templates/admin/users/user_edit_my_account.html @ 3666:fda60c2ad65f beta

fixed sort of permissions summary it's now perm+name unified permissions summary for users and user groups
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 04 Apr 2013 14:08:58 +0200
parents 690a955ba785
children a0a692cb0bec
comparison
equal deleted inserted replaced
3665:690a955ba785 3666:fda60c2ad65f
41 <span><a id="show_pullrequests" class="link-white" href="#pullrequests">${_('My pull requests')}</a> </span> 41 <span><a id="show_pullrequests" class="link-white" href="#pullrequests">${_('My pull requests')}</a> </span>
42 </li> 42 </li>
43 </ul> 43 </ul>
44 </div> 44 </div>
45 <!-- end box / title --> 45 <!-- end box / title -->
46 <div id="perms_container"> 46 ## permissions overview
47 <div id="perms" class="table"> 47 <%namespace name="p" file="/base/perms_summary.html"/>
48 %for section in sorted(c.rhodecode_user.permissions.keys()): 48 ${p.perms_summary(c.perm_user.permissions)}
49 <div class="perms_section_head">${section.replace("_"," ").capitalize()}</div> 49
50
51 <div id='tbl_list_wrap_${section}' class="yui-skin-sam">
52 <table id="tbl_list_${section}">
53 <thead>
54 <tr>
55 <th class="left">${_('Name')}</th>
56 <th class="left">${_('Permission')}</th>
57 </thead>
58 <tbody>
59 %for k in sorted(c.rhodecode_user.permissions[section], key=lambda s: s.lower):
60 <%
61 if section != 'global':
62 section_perm = c.rhodecode_user.permissions[section].get(k)
63 _perm = section_perm.split('.')[-1]
64 else:
65 _perm = section_perm = None
66 %>
67 %if _perm not in ['none']:
68 <tr>
69 <td>
70 %if section == 'repositories':
71 <a href="${h.url('summary_home',repo_name=k)}">${k}</a>
72 %elif section == 'repositories_groups':
73 <a href="${h.url('repos_group_home',group_name=k)}">${k}</a>
74 %else:
75 ${k}
76 %endif
77 </td>
78 <td>
79 %if section == 'global':
80 ${h.boolicon(True)}
81 %else:
82 <span class="perm_tag ${_perm}">${section_perm}</span>
83 %endif
84 </td>
85 </tr>
86 %endif
87 %endfor
88 </tbody>
89 </table>
90 </div>
91 %endfor
92 </div>
93 </div>
94 <div id="my_container" style="display:none"> 50 <div id="my_container" style="display:none">
95 <div class="table yui-skin-sam" id="repos_list_wrap"></div> 51 <div class="table yui-skin-sam" id="repos_list_wrap"></div>
96 <div id="user-paginator" style="padding: 0px 0px 0px 20px"></div> 52 <div id="user-paginator" style="padding: 0px 0px 0px 20px"></div>
97 </div> 53 </div>
98 <div id="pullrequests_container" class="table" style="display:none"> 54 <div id="pullrequests_container" class="table" style="display:none">