use existing i18n from redback

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1225864 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2011-12-30 17:08:19 +00:00
parent fd2a17ad7a
commit 4edc7d2a36
2 changed files with 20 additions and 15 deletions

View File

@ -5,4 +5,4 @@ ui pages to do in js:
** roles list ** roles list
** single roles read (parent, childs, permissions, users with a parent role, users with this role) ** single roles read (parent, childs, permissions, users with a parent role, users with this role)
* too much for archiva :-) * too much todo for archiva :-)

View File

@ -2,8 +2,8 @@
<table class="bordered-table zebra-striped" id="rolesTable"> <table class="bordered-table zebra-striped" id="rolesTable">
<thead> <thead>
<tr> <tr>
<th>${$.i18n.prop('roles.name')}</th> <th>${$.i18n.prop('name')}</th>
<th>${$.i18n.prop('roles.description')}</th> <th>${$.i18n.prop('description')}</th>
<th>${$.i18n.prop('edit')}</th> <th>${$.i18n.prop('edit')}</th>
</tr> </tr>
</thead> </thead>
@ -31,7 +31,7 @@
<a href="#roles-view">${$.i18n.prop('roles.grid.tab.title')}</a> <a href="#roles-view">${$.i18n.prop('roles.grid.tab.title')}</a>
</li> </li>
<li id="roles-view-tabs-li-roles-edit"> <li id="roles-view-tabs-li-roles-edit">
<a href="#role-edit">${$.i18n.prop('role.edit')}</a> <a href="#role-edit">${$.i18n.prop('edit')}</a>
</li> </li>
</ul> </ul>
<div id="roles-view-tabs-content" class="tab-content"> <div id="roles-view-tabs-content" class="tab-content">
@ -44,23 +44,23 @@
<script id="editRoleTab" type="text/x-jquery-tmpl"> <script id="editRoleTab" type="text/x-jquery-tmpl">
<div class="page-header"> <div class="page-header">
<h3>${$.i18n.prop('role.edit')}</h3> <h3>${$.i18n.prop('role')}</h3>
</div> </div>
<table class="bordered-table" id="editRoleTable"> <table class="bordered-table" id="editRoleTable">
<tbody> <tbody>
<tr> <tr>
<td>${$.i18n.prop('role.edit.name')}:</td> <td>${$.i18n.prop('name')}:</td>
<td>${name}</td> <td>${name}</td>
</tr> </tr>
<tr> <tr>
<td>${$.i18n.prop('role.edit.description')}:</td> <td>${$.i18n.prop('description')}:</td>
<td>${description}</td> <td>${description}</td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
<div class="page-header"> <div class="page-header">
<h3>${$.i18n.prop('role.parents')}</h3> <h3>${$.i18n.prop('role.model.parent.roles')}</h3>
</div> </div>
{{if parentRoleNames}} {{if parentRoleNames}}
<ul> <ul>
@ -75,7 +75,7 @@
{{/if}} {{/if}}
<div class="page-header"> <div class="page-header">
<h3>${$.i18n.prop('role.childs')}</h3> <h3>${$.i18n.prop('role.model.child.roles')}</h3>
</div> </div>
{{if childRoleNames}} {{if childRoleNames}}
<ul> <ul>
@ -89,16 +89,16 @@
</ul> </ul>
{{/if}} {{/if}}
<div class="page-header">
<h3>${$.i18n.prop('permissions')}</h3>
</div>
{{if permissions}} {{if permissions}}
<div class="page-header">
<h3>${$.i18n.prop('role.permissions')}</h3>
</div>
<table class="bordered-table zebra-striped" id="rolePermissionsTable"> <table class="bordered-table zebra-striped" id="rolePermissionsTable">
<thead> <thead>
<tr> <tr>
<th>${$.i18n.prop('role.permission.name')}</th> <th>${$.i18n.prop('name')}</th>
<th>${$.i18n.prop('role.permission.operation.name')}</th> <th>${$.i18n.prop('role.operation')}</th>
<th>${$.i18n.prop('role.permission.resource.')}</th> <th>${$.i18n.prop('role.resource')}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -121,4 +121,9 @@
</table> </table>
{{/if}} {{/if}}
<div class="page-header">
<h3>${$.i18n.prop('role.edit.users.defined.in.current.role')}</h3>
</div>
</script> </script>