<div class='well' id="main-menu" redback-permissions="{permissions: ['archiva-manage-users']}" style="display: none">
<ul class="navigation">
- <li style="display: none" redback-permissions="{permissions: ['archiva-manage-users']}"><a href="#" onclick="displayUsersGrid()">User List</a></li>
+ <li style="display: none" redback-permissions="{permissions: ['archiva-manage-users']}"><a href="#" onclick="displayUsersGrid()">${$.i18n.prop('users.list')}</a></li>
<li style="display: none" redback-permissions="{permissions: ['archiva-manage-users']}"><a href="#" onclick="displayRolesGrid()">Role List</a></li>
</ul>
</div>
{{each(i, columnDefinition) columns}}
<th>${ columnDefinition.headerText }</th>
{{/each}}
- <th>Edit</th>
- <th>Delete</th>
- <th>Locked</th>
- <th>Change password required</th>
+ <th>${$.i18n.prop('edit')}</th>
+ <th>${$.i18n.prop('delete')}</th>
+ <th>${$.i18n.prop('user.list.locked')}</th>
+ <th>${$.i18n.prop('user.change.password.required')}</th>
</tr>
</thead>
<tbody>
{{else}}
<td>
<a href="#" data-bind="click: function(){ row.deleteUser() }">
- <img src="images/delete.png" alt="Delete"/>
+ <img src="images/delete.png" alt="${$.i18n.prop('delete')}"/>
</a>
</td>
{{/if}}
<script id="usersGrid" type="text/x-jquery-tmpl">
<div class="page-header">
- <h2>Users list</h2>
+ <h2>${$.i18n.prop('users.list')}</h2>
</div>
<ul id="users-view-tabs" class="tabs">
<li class="active" id="users-view-tabs-li-users-grid">
- <a href="#users-view">Users</a>
+ <a href="#users-view">${$.i18n.prop('users.grid.tab.title')}</a>
</li>
<li id="users-view-tabs-li-user-edit">
- <a href="#createUserForm">{window.redbackModel.i18n('user.add')}</a>
+ <a href="#createUserForm">${$.i18n.prop('user.add')}</a>
</li>
</ul>
<div id="users-view-tabs-content" class="tab-content">
});
}
-
}
/**
screenChange();
jQuery("#main-content").attr("data-bind","");
jQuery("#main-content").html($("#usersGrid").html());
+ jQuery("#main-content").attr("data-bind",'template: {name:"usersGrid"}');
window.redbackModel.usersViewModel = new usersViewModel();
window.redbackModel.usersViewModel.loadUsers();
ko.applyBindings(window.redbackModel.usersViewModel,jQuery("#main-content").get(0));