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:
Bharat Mediratta
2010-09-08 00:50:30 -07:00
parent 8fed0fb2e2
commit 90ba0f9237
3 changed files with 17 additions and 3 deletions

View File

@@ -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") ?>"