From a5c53894d6d519d7c59d713d9e3178595df153a1 Mon Sep 17 00:00:00 2001 From: Luna D Date: Tue, 18 Aug 2020 00:19:49 +0200 Subject: [PATCH] display unconfirmed users in list --- .../templates/admin/user/index.html.slime | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/lib/philomena_web/templates/admin/user/index.html.slime b/lib/philomena_web/templates/admin/user/index.html.slime index 71402ec5..4f24ae92 100644 --- a/lib/philomena_web/templates/admin/user/index.html.slime +++ b/lib/philomena_web/templates/admin/user/index.html.slime @@ -49,11 +49,16 @@ h1 Users = user.email td - = if user.deleted_at do - strong> Deactivated - = pretty_time user.deleted_at - - else - ' Active + = cond do + - user.deleted_at -> + strong> Deactivated + = pretty_time user.deleted_at + + - user.confirmed_at -> + ' Active + + - true -> + strong> Unconfirmed td = String.capitalize(user.role)