Add reverse sort for open notes and a couple cleanups

This commit is contained in:
2024-05-22 19:42:50 -04:00
parent 6c6bbf8990
commit b307d616f6
5 changed files with 41 additions and 20 deletions

View File

@ -26,9 +26,11 @@ class DefaultController extends AbstractController
{
$this->denyAccessUnlessGranted('IS_AUTHENTICATED_FULLY');
$last4Notes = $emi->getRepository(Note::class)->getLast4Notes($user);
$openNotes = $emi->getRepository(Note::class)->reverseNoteSort($user);
return $this->render('default/home.html.twig', [
'last4Notes' => $last4Notes,
'reverseNoteSort' => $openNotes,
'isAdmin' => $this->isGranted('ROLE_ADMIN'),
]);
}