From 0257f410d57d13e044f6200d3a989e12d049ca2d Mon Sep 17 00:00:00 2001
From: Tobias Diekershoff <tobias.diekershoff@gmx.net>
Date: Mon, 30 Jul 2018 17:19:22 +0200
Subject: [PATCH] mention if a user is blocked in the admin panel user overview

---
 mod/admin.php                  | 1 +
 view/templates/admin/users.tpl | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/mod/admin.php b/mod/admin.php
index b88bc723a2..fae20f79bd 100644
--- a/mod/admin.php
+++ b/mod/admin.php
@@ -1881,6 +1881,7 @@ function admin_page_users(App $a)
 		'$deny' => L10n::t('Deny'),
 		'$delete' => L10n::t('Delete'),
 		'$block' => L10n::t('Block'),
+		'$blocked' => L10n::t('User blocked'),
 		'$unblock' => L10n::t('Unblock'),
 		'$siteadmin' => L10n::t('Site admin'),
 		'$accountexpired' => L10n::t('Account expired'),
diff --git a/view/templates/admin/users.tpl b/view/templates/admin/users.tpl
index a842d6e364..b2b0d615a4 100644
--- a/view/templates/admin/users.tpl
+++ b/view/templates/admin/users.tpl
@@ -85,7 +85,7 @@
 						<td class='register_date'>{{$u.register_date}}</td>
 						<td class='login_date'>{{$u.login_date}}</td>
 						<td class='lastitem_date'>{{$u.lastitem_date}}</td>
-						<td class='login_date'>{{$u.page_flags}} {{if $u.is_admin}}({{$siteadmin}}){{/if}} {{if $u.account_expired}}({{$accountexpired}}){{/if}}</td>
+						<td class='login_date'>{{$u.page_flags}} {{if $u.is_admin}}({{$siteadmin}}){{/if}} {{if $u.account_expired}}({{$accountexpired}}){{/if}} {{if $u.blocked}}{{$blocked}}{{/if}}</td>
 						<td class="checkbox"> 
 						{{if $u.is_deletable}}
 							<input type="checkbox" class="users_ckbx" id="id_user_{{$u.uid}}" name="user[]" value="{{$u.uid}}"/></td>