mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-31 03:51:23 +01:00
refine the switch for admin-options of UI.
This commit is contained in:
parent
c95d42b9fc
commit
2b0b4ed003
@ -13,7 +13,11 @@
|
||||
<div class="sub-pane">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<th>// 'username' | tr //</th><th>// 'email' | tr //</th><th>// 'registration_time' | tr //</th><th>// 'operation' | tr //</th>
|
||||
<th>// 'username' | tr //</th>
|
||||
<th>// 'email' | tr //</th>
|
||||
<th>// 'registration_time' | tr //</th>
|
||||
<th>// 'administrator' | tr //</th>
|
||||
<th>// 'operation' | tr //</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="u in vm.users">
|
||||
@ -21,7 +25,9 @@
|
||||
<td>//u.email//</td>
|
||||
<td>//u.creation_time | dateL : 'YYYY-MM-DD HH:mm:ss'//</td>
|
||||
<td>
|
||||
<toggle-admin has-admin-role="u.has_admin_role == 1" user-id="//u.user_id//"></toggle-admin>
|
||||
<toggle-admin has-admin-role="u.has_admin_role == 1" user-id="//u.user_id//"></toggle-admin>
|
||||
</td>
|
||||
<td>
|
||||
<a href="javascript:void(0)" data-toggle="modal" data-target="#myModal" ng-click="vm.confirmToDelete(u.user_id)"><span class="glyphicon glyphicon-trash"></span></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -165,5 +165,6 @@ var locale_messages = {
|
||||
'change_profile': 'Change Profile',
|
||||
'confirm_to_change_profile': 'Are you sure to change your profile?',
|
||||
'form_is_invalid': 'Form content is invalid',
|
||||
'form_is_invalid_message': 'Form content is invalid, please fill the required fields.'
|
||||
'form_is_invalid_message': 'Form content is invalid, please fill the required fields.',
|
||||
'administrator': 'Administrator'
|
||||
};
|
@ -164,5 +164,6 @@ var locale_messages = {
|
||||
'change_profile': '修改个人信息',
|
||||
'confirm_to_change_profile': '确认要修改个人信息吗?',
|
||||
'form_is_invalid': '表单内容无效',
|
||||
'form_is_invalid_message': '表单内容无效,请填写必填字段。'
|
||||
'form_is_invalid_message': '表单内容无效,请填写必填字段。',
|
||||
'administrator': '管理员'
|
||||
};
|
Loading…
Reference in New Issue
Block a user