@@ -110,18 +110,22 @@ block content
110110 th
111111 tbody
112112 tr( ng-repeat ='user in users' )
113- td( ng-bind ='user.username' )
114113 td
115- span( ng-if ="user.nowAuth <= 0" ) {{"admin.authority.level0" | translate}}
116- span( ng-if ="user.nowAuth == 1" ) {{"admin.authority.level1" | translate}}
117- span( ng-if ="user.nowAuth == 5" ) {{"admin.authority.level5" | translate}}
118- span( ng-if ="user.nowAuth >= 10" ) {{"admin.authority.level10" | translate}}
114+ i.fas.fa-user-tie ( ng-if ="!user.admin && !user.superDuperAdmin" )
115+ i.fas.fa-user-shield ( ng-if ="user.admin" )
116+ | {{user.username}}
119117 td
120- button( ng-click ='updateAuthority(user._id , 0)' style ="width:100%;" type ="button" class ="btn btn-secondary" ) {{"admin.authority.doLevel0" | translate}}
118+ span( ng-if ="user.superDuperAdmin" ) {{"admin.users.super" | translate}}
119+ span( ng-if ="!user.superDuperAdmin && user.nowAuth <= 0" ) {{"admin.authority.level0" | translate}}
120+ span( ng-if ="!user.superDuperAdmin && user.nowAuth == 1" ) {{"admin.authority.level1" | translate}}
121+ span( ng-if ="!user.superDuperAdmin && user.nowAuth == 5" ) {{"admin.authority.level5" | translate}}
122+ span( ng-if ="!user.superDuperAdmin && user.nowAuth >= 10" ) {{"admin.authority.level10" | translate}}
121123 td
122- button( ng-click ='updateAuthority(user._id , 1 )' style ="width:100%;" type ="button" class ="btn btn-info" ) {{"admin.authority.doLevel1 " | translate}}
124+ button( ng-click ='updateAuthority(user._id , 0 )' style ="width:100%;" type ="button" class ="btn btn-secondary" ng-disabled = "user.superDuperAdmin" ) {{"admin.authority.doLevel0 " | translate}}
123125 td
124- button( ng-click ='updateAuthority(user._id , 5 )' style ="width:100%;" type ="button" class ="btn btn-primary" ) {{"admin.authority.doLevel5 " | translate}}
126+ button( ng-click ='updateAuthority(user._id , 1 )' style ="width:100%;" type ="button" class ="btn btn-info" ng-disabled = "user.superDuperAdmin" ) {{"admin.authority.doLevel1 " | translate}}
125127 td
126- button( ng-click ='updateAuthority(user._id , 10)' style ="width:100%;" type ="button" class ="btn btn-success" ) {{"admin.authority.doLevel10" | translate}}
128+ button( ng-click ='updateAuthority(user._id , 5)' style ="width:100%;" type ="button" class ="btn btn-primary" ng-disabled ="user.superDuperAdmin" ) {{"admin.authority.doLevel5" | translate}}
129+ td
130+ button( ng-click ='updateAuthority(user._id , 10)' style ="width:100%;" type ="button" class ="btn btn-success" ng-disabled ="user.superDuperAdmin || !user.admin" ) {{"admin.authority.doLevel10" | translate}}
127131 br
0 commit comments