Sfoglia il codice sorgente

Titre de la page perso

François 6 anni fa
parent
commit
ffab99c760

+ 2 - 1
src/AppBundle/Controller/VideothequePersonnelleController.php

@@ -20,7 +20,8 @@ class VideothequePersonnelleController extends Controller
         $films = $this->getUser()->getFilms();
 
         return $this->render('@App/videotheque/liste.html.twig', array(
-            'listeFilms'    =>  $films
+            'listeFilms'    =>  $films,
+            'titre'         =>  'Ma liste de films à voir'
         ));
     }
 

+ 8 - 0
src/AppBundle/Resources/views/videotheque/liste.html.twig

@@ -1,5 +1,13 @@
 {% extends "@App/videotheque/base.html.twig" %}
 
+{% block title %}
+{% if titre is defined %}{{ titre }}{% else %}{{ parent() }}{% endif %}
+{% endblock %}
+
+{% block titre %}
+{% if titre is defined %}{{ titre }}{% else %}{{ parent() }}{% endif %}
+{% endblock %}
+
 {% block body %}
 	<p><a class="btn btn-primary" role="button" href="{{ path('videotheque_ajouter') }}">Ajouter un film</a></p>