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