diff options
Diffstat (limited to '')
-rw-r--r-- | src/web/_views/people/main.php (renamed from src/web/_views/apps/people/main.php) | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/web/_views/apps/people/main.php b/src/web/_views/people/main.php index ec84ab9..c602b2c 100644 --- a/src/web/_views/apps/people/main.php +++ b/src/web/_views/people/main.php @@ -1,18 +1,22 @@ <?php /* Copyright (c) 2024 Freya Murphy */ ?> -<?php /* vi: syntax=php */ ?> <div id="people-container" class="col"> -<?php - $pdata = $this->people(); -?> + <?php $pdata = $this->people(); ?> </div> <?php + $loaded = count($pdata['users']); $page_size = $pdata['page_size']; $total = $pdata['count']; $max = $pdata['max_id']; $filter_uid = $pdata['filter_uid']; $filer_type = $pdata['filter_type']; + ?> +<?php if ($loaded == 0): ?> + <div id="no-people" class="card"> + <?=lang('no_people_found')?> + </div> +<?php endif; ?> <?php if ($loaded >= $page_size && $page_size < $total): ?> <?=ilang('action_load_users', id: 'action-load-users', |