add dashboard

This commit is contained in:
Simon Vieille 2022-05-17 00:07:07 +02:00
parent 751450f840
commit e2e8e2ed79
Signed by: deblan
GPG key ID: 579388D585F70417
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,21 @@
<?php
namespace App\Controller;
use App\Core\Controller\Dashboard\DashboardAdminController as Controller;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
/**
* @Route("/admin")
*/
class DashboardAdminController extends Controller
{
/**
* @Route("/", name="admin_dashboard_index")
*/
public function index(): Response
{
return $this->render('admin/dashboard.html.twig');
}
}

View file

@ -0,0 +1,9 @@
{% extends '@Core/admin/layout.html.twig' %}
{% block title %}Tableau de bord - {{ parent() }}{% endblock %}
{% block body %}
<div class="row">
<iframe src="{{ setting('stats_umami_url') }}" class="col-12" frameborder="0" style="height: calc(100vh - 60px)"></iframe>
</div>
{% endblock %}