forked from zer.ooo/web
add server count
This commit is contained in:
parent
8b820d242d
commit
98d639b990
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace Eater\Glim\Handler;
|
||||
|
||||
use Eater\Glim\Model\ServerQuery;
|
||||
use Eater\Glim\Service\GitHub;
|
||||
|
||||
class Home extends Session
|
||||
|
@ -28,7 +29,8 @@ class Home extends Session
|
|||
return $this->render("home.html.twig", [
|
||||
'author' => $author,
|
||||
'contributors' => $github->getContributors(),
|
||||
'githubRepo' => $repo
|
||||
'githubRepo' => $repo,
|
||||
'serverCount' => ServerQuery::create()->findByStatus('signed')->count()
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue