From 430f364456c29e4a3d2c0ccabed7988d51de21ac Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 19 Jun 2016 08:52:16 +0200 Subject: [PATCH] #4 Account: more features to manage gists - fix --- app/locales/en.yml | 2 +- src/Gist/Controller/MyController.php | 5 ----- src/Gist/Resources/views/My/my.html.twig | 10 +++++----- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/app/locales/en.yml b/app/locales/en.yml index a1c92cd..a62da54 100644 --- a/app/locales/en.yml +++ b/app/locales/en.yml @@ -81,7 +81,7 @@ form: type: label: 'Language: %value%' choice: - all: 'Tous' + all: 'All' html: 'HTML' xml: 'XML' css: 'CSS' diff --git a/src/Gist/Controller/MyController.php b/src/Gist/Controller/MyController.php index 22e4fb8..248c03e 100644 --- a/src/Gist/Controller/MyController.php +++ b/src/Gist/Controller/MyController.php @@ -69,9 +69,6 @@ class MyController extends Controller } } - $nextPage = min($page + 1, $gists->getLastPage()); - $previousPage = max($page - 1, 1); - return $this->render( 'My/my.html.twig', array( @@ -80,8 +77,6 @@ class MyController extends Controller 'deleteForm' => $deleteForm->createView(), 'filterForm' => $filterForm->createView(), 'deleted' => !empty($deleted), - 'nextPage' => $nextPage, - 'previousPage' => $previousPage, ) ); } diff --git a/src/Gist/Resources/views/My/my.html.twig b/src/Gist/Resources/views/My/my.html.twig index 10e3539..8afb414 100644 --- a/src/Gist/Resources/views/My/my.html.twig +++ b/src/Gist/Resources/views/My/my.html.twig @@ -97,7 +97,7 @@