diff --git a/src/Controller/UserController.php b/src/Controller/UserController.php index a019f5a..9663449 100644 --- a/src/Controller/UserController.php +++ b/src/Controller/UserController.php @@ -47,7 +47,7 @@ class UserController extends AbstractController { $user = $this->getUser(); - return $this->render('user/offers.html.twig', [ + return $this->render('user/public.html.twig', [ 'user' => $user, 'offers' => $offeringRepository->findByUser($user), ]); @@ -105,4 +105,15 @@ class UserController extends AbstractController throw new HttpException(403, "No permission"); } + + #[Route('/myoffers', name: 'own_offers')] + public function ownOffers(OfferingRepository $offeringRepository): Response + { + $user = $this->getUser(); + + return $this->render('user/offers.html.twig', [ + 'user' => $user, + 'offers' => $offeringRepository->findByUser($user), + ]); + } } diff --git a/templates/base.html.twig b/templates/base.html.twig index d857ed7..7cd805e 100644 --- a/templates/base.html.twig +++ b/templates/base.html.twig @@ -45,6 +45,7 @@
{{ offer.description }}
-{{ offer.description }}
-{{ offer.description }}
+