Skip to content

Commit

Permalink
feature(admin): newest users page shows account creation times
Browse files Browse the repository at this point in the history
Fixes Elgg#9629
  • Loading branch information
mrclay committed Aug 9, 2016
1 parent 8c7994d commit 7ce870a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
4 changes: 4 additions & 0 deletions views/default/admin/users/newest.css
@@ -0,0 +1,4 @@

.elgg-newest-users td + td {
white-space: nowrap;
}
16 changes: 16 additions & 0 deletions views/default/admin/users/newest.php
@@ -1,9 +1,25 @@
<?php

use Elgg\Views\TableColumn\ColumnFactory;

$view = "admin/users/newest.css";
elgg_register_css($view, elgg_get_simplecache_url($view));
elgg_load_css($view);

// newest users
$users = elgg_list_entities([
'type' => 'user',
'subtype'=> null,
'full_view' => false,
'list_type' => 'table',
'columns' => [
ColumnFactory::fromView('item', elgg_echo('user')),
ColumnFactory::fromProperty('email'),
ColumnFactory::fromView('time_created', null, [
'format' => 'friendly',
]),
],
'list_class' => 'elgg-newest-users',
]);

echo elgg_view_module('inline', elgg_echo('admin:users:newest'), $users);

0 comments on commit 7ce870a

Please sign in to comment.