Parcourir la source

verif sur l'existence d'une BO

François il y a 6 ans
Parent
commit
a048363b80
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/AppBundle/Resources/views/videotheque/voirfilm.html.twig

+ 2 - 0
src/AppBundle/Resources/views/videotheque/voirfilm.html.twig

@@ -73,9 +73,11 @@
                     </div>
                 </div>
                 <div class="col-5">
+                    {% if film.mediaVideo.video is defined %}
                     <div style='height :200px ;width :300px'>
                         {{ film.mediaVideo.video|raw }}
                     </div>
+                    {% endif %}
                 </div>
             </div>