From 1f1aea87a421ca5e7931d220d10c838574208e2c Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Fri, 20 Dec 2019 17:04:33 +0200 Subject: Visual difference for inactive user in Administration: strikethrough. Thanks to hever and xet7 ! Closes #2860 --- client/components/settings/peopleBody.jade | 59 ++++++++++++++++++++++-------- 1 file changed, 44 insertions(+), 15 deletions(-) (limited to 'client/components') diff --git a/client/components/settings/peopleBody.jade b/client/components/settings/peopleBody.jade index ff343e37..d8f672b0 100644 --- a/client/components/settings/peopleBody.jade +++ b/client/components/settings/peopleBody.jade @@ -39,26 +39,55 @@ template(name="peopleGeneral") template(name="peopleRow") tr - td.username {{ userData.username }} - td {{ userData.profile.fullname }} - td - if userData.isAdmin - | {{_ 'yes'}} - else - | {{_ 'no'}} - td {{ userData.emails.[0].address }} - td - if userData.emails.[0].verified - | {{_ 'yes'}} - else - | {{_ 'no'}} - td {{ moment userData.createdAt 'LLL' }} + if userData.loginDisabled + td.username {{ userData.username }} + else + td.username {{ userData.username }} + if userData.loginDisabled + td {{ userData.profile.fullname }} + else + td {{ userData.profile.fullname }} + if userData.loginDisabled + td + if userData.isAdmin + | {{_ 'yes'}} + else + | {{_ 'no'}} + else + td + if userData.isAdmin + | {{_ 'yes'}} + else + | {{_ 'no'}} + if userData.loginDisabled + td {{ userData.emails.[0].address }} + else + td {{ userData.emails.[0].address }} + if userData.loginDisabled + td + if userData.emails.[0].verified + | {{_ 'yes'}} + else + | {{_ 'no'}} + else + td + if userData.emails.[0].verified + | {{_ 'yes'}} + else + | {{_ 'no'}} + if userData.loginDisabled + td {{ moment userData.createdAt 'LLL' }} + else + td {{ moment userData.createdAt 'LLL' }} td if userData.loginDisabled | {{_ 'no'}} else | {{_ 'yes'}} - td {{_ userData.authenticationMethod }} + if userData.loginDisabled + td {{_ userData.authenticationMethod }} + else + td {{_ userData.authenticationMethod }} td a.edit-user | {{_ 'edit'}} -- cgit v1.2.3-1-g7c22