From edfbbc0a0fa3503801413c9abd8ee348f7125933 Mon Sep 17 00:00:00 2001 From: ben Date: Wed, 31 Jan 2018 16:40:36 +0100 Subject: [PATCH] enhance responsiveness --- .env | 2 +- app/Resources/views/home/index.html.twig | 4 ++-- app/Resources/views/video/show.html.twig | 2 +- src/AppBundle/Tests/Controller/VideoControllerTest.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env b/.env index 53b25ea..dd13bd3 100644 --- a/.env +++ b/.env @@ -32,7 +32,7 @@ APP_ABOUT='Welcome to this app. e-media video streaming' #x_sendfile_mode configuration #set the following variable to true, if you want to use webserver to stream file instead of php. But you must [configure your webserver](https://github.com/benIT/e-media/wiki/Webserver) to use it. -USE_X_SENDFILE_MODE=false +USE_X_SENDFILE_MODE=true #set the following variable to the nginx location for serving large files. [see configure your webserver](https://github.com/benIT/e-media/wiki/Webserver) NGINX_LOCATION_X_SEND_FILE=stream-files diff --git a/app/Resources/views/home/index.html.twig b/app/Resources/views/home/index.html.twig index 907d516..5b93054 100644 --- a/app/Resources/views/home/index.html.twig +++ b/app/Resources/views/home/index.html.twig @@ -9,9 +9,9 @@ {% if latestVideos %}

{% trans %}lastest_videos{% endtrans %}

{% for video in latestVideos %} -
+
{{ video.title |slice(0,20)}} -