]> source.dussan.org Git - archiva.git/commitdiff
display users with current role and with parents roles
authorOlivier Lamy <olamy@apache.org>
Fri, 30 Dec 2011 17:08:32 +0000 (17:08 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 30 Dec 2011 17:08:32 +0000 (17:08 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1225865 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/redback/templates/roles-tmpl.html

index bea2ef35dd093ac6a6625130cf8636b5e95829cc..4b242335d75a5897bffcdf5e2a761462cbf2331d 100644 (file)
     </table>
   {{/if}}
 
+  <div class="page-header">
+    <h2>${$.i18n.prop('role.edit.section.users')}</h2>
+  </div>
+  {{if parentsRolesUsers}}
+    <div class="page-header">
+      <h3>${$.i18n.prop('role.edit.users.defined.in.parent.roles')}</h3>
+    </div>
+    {{if $.isArray(parentsRolesUsers)}}
+      <ul>
+      {{each parentsRolesUsers}}
+        <li>${$value.fullName} - ( ${$value.username} - ${$value.email} ) </li>
+      {{/each}}
+      </ul>
+    {{else}}
+      <ul>
+        <li>${parentsRolesUsers.fullName} - ( ${parentsRolesUsers.username} - ${parentsRolesUsers.email} ) </li>
+      </ul>
+    {{/if}}
+  {{/if}}
+
   <div class="page-header">
     <h3>${$.i18n.prop('role.edit.users.defined.in.current.role')}</h3>
   </div>
 
+  {{if users}}
+    {{if $.isArray(users)}}
+      <ul>
+      {{each users}}
+        <li>${$value.fullName} - ( ${$value.username} - ${$value.email} ) </li>
+      {{/each}}
+      </ul>
+    {{else}}
+      <ul>
+        <li>${users.fullName} - ( ${users.username} - ${users.email} ) </li>
+      </ul>
+    {{/if}}
+  {{else}}
+    ${$.i18n.prop('role.edit.no.user.defined')}
+  {{/if}}
 
 </script>