1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Move User templates to Core

This commit is contained in:
Yassine Guedidi 2023-12-30 23:58:23 +01:00
parent c7bf98923e
commit 0234aa1acf
10 changed files with 7 additions and 7 deletions

View file

@ -67,7 +67,7 @@ class UserController extends AbstractController
return $this->redirectToRoute('user_edit', ['id' => $user->getId()]);
}
return $this->render('@WallabagUser/User/new.html.twig', [
return $this->render('@WallabagCore/User/new.html.twig', [
'user' => $user,
'form' => $form->createView(),
]);
@ -108,7 +108,7 @@ class UserController extends AbstractController
return $this->redirectToRoute('user_edit', ['id' => $user->getId()]);
}
return $this->render('@WallabagUser/User/edit.html.twig', [
return $this->render('@WallabagCore/User/edit.html.twig', [
'user' => $user,
'edit_form' => $form->createView(),
'delete_form' => $deleteForm->createView(),
@ -173,7 +173,7 @@ class UserController extends AbstractController
}
}
return $this->render('@WallabagUser/User/index.html.twig', [
return $this->render('@WallabagCore/User/index.html.twig', [
'searchForm' => $form->createView(),
'users' => $pagerFanta,
]);

View file

@ -78,7 +78,7 @@ class AuthCodeMailer implements AuthCodeMailerInterface
*/
public function sendAuthCode(TwoFactorInterface $user): void
{
$template = $this->twig->load('@WallabagUser/TwoFactor/email_auth_code.html.twig');
$template = $this->twig->load('@WallabagCore/TwoFactor/email_auth_code.html.twig');
$subject = $template->renderBlock('subject', []);
$bodyHtml = $template->renderBlock('body_html', [