Show More
@@ -135,7 +135,7 b'' | |||
|
135 | 135 | |
|
136 | 136 | ## permissions overview |
|
137 | 137 | <%namespace name="p" file="/base/perms_summary.html"/> |
|
138 | ${p.perms_summary(c.perm_user.permissions)} | |
|
138 | ${p.perms_summary(c.perm_user.permissions, show_all=True)} | |
|
139 | 139 | |
|
140 | 140 | </div> |
|
141 | 141 | <div class="box box-left" style="clear:left"> |
@@ -154,7 +154,7 b'' | |||
|
154 | 154 | |
|
155 | 155 | ## permissions overview |
|
156 | 156 | <%namespace name="p" file="/base/perms_summary.html"/> |
|
157 | ${p.perms_summary(c.perm_user.permissions)} | |
|
157 | ${p.perms_summary(c.perm_user.permissions, show_all=True)} | |
|
158 | 158 | |
|
159 | 159 | </div> |
|
160 | 160 | <div class="box box-left" style="clear:left"> |
@@ -3,7 +3,7 b'' | |||
|
3 | 3 | ## <%namespace name="p" file="/base/perms_summary.html"/> |
|
4 | 4 | ## ${p.perms_summary(c.perm_user.permissions)} |
|
5 | 5 | |
|
6 | <%def name="perms_summary(permissions)"> | |
|
6 | <%def name="perms_summary(permissions, show_all=False)"> | |
|
7 | 7 | <div id="perms" class="table"> |
|
8 | 8 | %for section in sorted(permissions.keys()): |
|
9 | 9 | <div class="perms_section_head">${section.replace("_"," ").capitalize()}</div> |
@@ -12,6 +12,7 b'' | |||
|
12 | 12 | %else: |
|
13 | 13 | <div id='tbl_list_wrap_${section}' class="yui-skin-sam"> |
|
14 | 14 | <table id="tbl_list_${section}"> |
|
15 | ## global permission box | |
|
15 | 16 | %if section == 'global': |
|
16 | 17 | <thead> |
|
17 | 18 | <tr> |
@@ -39,6 +40,7 b'' | |||
|
39 | 40 | </thead> |
|
40 | 41 | <tbody> |
|
41 | 42 | %for k, section_perm in sorted(permissions[section].items(), key=lambda s: s[1]+s[0].lower()): |
|
43 | %if section_perm.split('.')[-1] != 'none' or show_all: | |
|
42 | 44 | <tr> |
|
43 | 45 | <td> |
|
44 | 46 | %if section == 'repositories': |
@@ -63,6 +65,7 b'' | |||
|
63 | 65 | %endif |
|
64 | 66 | </td> |
|
65 | 67 | </tr> |
|
68 | %endif | |
|
66 | 69 | %endfor |
|
67 | 70 | </tbody> |
|
68 | 71 | %endif |
General Comments 0
You need to be logged in to leave comments.
Login now