Commits

Marcin Kuzminski committed e29c688

linkify perms and make global ones display better

Comments (0)

Files changed (2)

rhodecode/public/js/rhodecode.js

     var a_ = fromHTML(a.getData(field));
     var b_ = fromHTML(b.getData(field));
     // extract name from table
-    a_ = a_.innerHTML;
-    b_ = b_.innerHTML;      
+
+    a_ = a_.children[0].innerHTML;
+    b_ = b_.children[0].innerHTML;      
     
     var comp = YAHOO.util.Sort.compare;
     var compState = comp(a_, b_, desc);

rhodecode/templates/admin/users/user_edit_my_account.html

               <tbody>
             %for k in c.rhodecode_user.permissions[section]:
                 <tr>
-                    <td>${k}</td>
+                    <td>
+                        %if section == 'repositories':
+                            <a href="${h.url('summary_home',repo_name=k)}">${k}</a>
+                        %elif section == 'repositories_groups':
+                            <a href="${h.url('repos_group_home',group_name=k)}">${k}</a>
+                        %else:
+                            ${k}
+                        %endif
+                    </td>
                     <td>
                         %if section == 'global':
-                         ${', '.join(c.rhodecode_user.permissions[section])}
+                         ${h.bool2icon(True)}
                         %else:
                         <span class="perm_tag ${c.rhodecode_user.permissions[section].get(k).split('.')[-1] }">${c.rhodecode_user.permissions[section].get(k)}</span>
                         %endif