mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-19 19:09:13 -04:00
Show the number of photos/albums the user owns in the Admin > Users
page, and improve the message to explain what's going to happen to the deleted user's items. Partial fix for #1344, which I can't reproduce now.
This commit is contained in:
@@ -64,6 +64,7 @@
|
||||
<th><?= t("Full name") ?></th>
|
||||
<th><?= t("Email") ?></th>
|
||||
<th><?= t("Last login") ?></th>
|
||||
<th><?= t("Albums/Photos") ?></th>
|
||||
<th><?= t("Actions") ?></th>
|
||||
</tr>
|
||||
|
||||
@@ -86,6 +87,9 @@
|
||||
<td>
|
||||
<?= ($user->last_login == 0) ? "" : gallery::date($user->last_login) ?>
|
||||
</td>
|
||||
<td>
|
||||
<?= db::build()->from("items")->where("owner_id", "=", $user->id)->count_records() ?>
|
||||
</td>
|
||||
<td>
|
||||
<a href="<?= url::site("admin/users/edit_user_form/$user->id") ?>"
|
||||
open_text="<?= t("Close") ?>"
|
||||
|
||||
Reference in New Issue
Block a user