add server count

master
Corne Oppelaar 8 years ago
parent 8b820d242d
commit 98d639b990
No known key found for this signature in database
GPG Key ID: FF32F66315D2E8E5

@ -2,6 +2,7 @@
namespace Eater\Glim\Handler; namespace Eater\Glim\Handler;
use Eater\Glim\Model\ServerQuery;
use Eater\Glim\Service\GitHub; use Eater\Glim\Service\GitHub;
class Home extends Session class Home extends Session
@ -28,7 +29,8 @@ class Home extends Session
return $this->render("home.html.twig", [ return $this->render("home.html.twig", [
'author' => $author, 'author' => $author,
'contributors' => $github->getContributors(), 'contributors' => $github->getContributors(),
'githubRepo' => $repo 'githubRepo' => $repo,
'serverCount' => ServerQuery::create()->findByStatus('signed')->count()
]); ]);
} }
} }

Loading…
Cancel
Save