add dashboard
This commit is contained in:
parent
751450f840
commit
e2e8e2ed79
21
src/Controller/DashboardAdminController.php
Normal file
21
src/Controller/DashboardAdminController.php
Normal 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');
|
||||
}
|
||||
}
|
9
templates/admin/dashboard.html.twig
Normal file
9
templates/admin/dashboard.html.twig
Normal 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 %}
|
Loading…
Reference in a new issue