##// END OF EJS Templates
linkify perms and make global ones display better
marcink -
r2128:e29c688e beta
parent child Browse files
Show More
@@ -704,8 +704,9 var permNameSort = function(a, b, desc,
704 var a_ = fromHTML(a.getData(field));
704 var a_ = fromHTML(a.getData(field));
705 var b_ = fromHTML(b.getData(field));
705 var b_ = fromHTML(b.getData(field));
706 // extract name from table
706 // extract name from table
707 a_ = a_.innerHTML;
707
708 b_ = b_.innerHTML;
708 a_ = a_.children[0].innerHTML;
709 b_ = b_.children[0].innerHTML;
709
710
710 var comp = YAHOO.util.Sort.compare;
711 var comp = YAHOO.util.Sort.compare;
711 var compState = comp(a_, b_, desc);
712 var compState = comp(a_, b_, desc);
@@ -186,10 +186,18
186 <tbody>
186 <tbody>
187 %for k in c.rhodecode_user.permissions[section]:
187 %for k in c.rhodecode_user.permissions[section]:
188 <tr>
188 <tr>
189 <td>${k}</td>
189 <td>
190 %if section == 'repositories':
191 <a href="${h.url('summary_home',repo_name=k)}">${k}</a>
192 %elif section == 'repositories_groups':
193 <a href="${h.url('repos_group_home',group_name=k)}">${k}</a>
194 %else:
195 ${k}
196 %endif
197 </td>
190 <td>
198 <td>
191 %if section == 'global':
199 %if section == 'global':
192 ${', '.join(c.rhodecode_user.permissions[section])}
200 ${h.bool2icon(True)}
193 %else:
201 %else:
194 <span class="perm_tag ${c.rhodecode_user.permissions[section].get(k).split('.')[-1] }">${c.rhodecode_user.permissions[section].get(k)}</span>
202 <span class="perm_tag ${c.rhodecode_user.permissions[section].get(k).split('.')[-1] }">${c.rhodecode_user.permissions[section].get(k)}</span>
195 %endif
203 %endif
General Comments 0
You need to be logged in to leave comments. Login now