mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 01:49:05 +02:00
Show the version number of Part-DB on homepage.
This commit is contained in:
parent
a748a6328d
commit
95cd56f0bd
11 changed files with 150 additions and 6 deletions
|
@ -39,6 +39,7 @@ use App\Entity\AttachmentType;
|
|||
use App\Entity\Category;
|
||||
use App\Entity\Part;
|
||||
use App\Entity\StructuralDBElement;
|
||||
use Shivas\VersioningBundle\Service\VersionManager;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
@ -48,8 +49,11 @@ class HomepageController extends AbstractController
|
|||
/**
|
||||
* @Route("/", name="homepage")
|
||||
*/
|
||||
function homepage()
|
||||
function homepage(VersionManager $versionManager)
|
||||
{
|
||||
return $this->render('base.html.twig');
|
||||
return $this->render('homepage.html.twig',
|
||||
[
|
||||
'banner' => $this->getParameter('banner')
|
||||
]);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue