diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2010-09-08 00:50:30 -0700 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2010-09-08 00:50:30 -0700 |
| commit | 90ba0f9237d67ddf73ca1e3235ffb466f2eb0a69 (patch) | |
| tree | 3f218191e438c788bed6658af96b44fb990cf5d6 /modules/user/views/admin_users.html.php | |
| parent | 8fed0fb2e20d72f43f8730b557c044dbe844196f (diff) | |
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.
Diffstat (limited to 'modules/user/views/admin_users.html.php')
| -rw-r--r-- | modules/user/views/admin_users.html.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/user/views/admin_users.html.php b/modules/user/views/admin_users.html.php index b2526bd8..f067cae8 100644 --- a/modules/user/views/admin_users.html.php +++ b/modules/user/views/admin_users.html.php @@ -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> @@ -87,6 +88,9 @@ <?= ($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") ?>" class="g-panel-link g-button ui-state-default ui-corner-all ui-icon-left"> |
