Modified admin interfaces, factored common css out

This commit is contained in:
Tom Bloor 2017-04-18 10:43:23 +01:00
parent 208e45082f
commit 36e8cfe1d0
6 changed files with 106 additions and 128 deletions

View file

@ -15,6 +15,16 @@ sub under {
sub home {
my $c = shift;
my $user_rs = $c->schema->resultset('User');
my $token_rs = $c->schema->resultset('AccountToken');
$c->stash(
user_count => $user_rs->count,
tokens => {
total => $token_rs->count,
unused => $token_rs->search({used => 0 })->count,
},
);
}
1;