From 2cd1b32b4cc6cad7e76c5e2bfad948e4fc8f59d7 Mon Sep 17 00:00:00 2001 From: gzbender Date: Wed, 29 Aug 2018 13:08:37 +0500 Subject: [PATCH 01/15] =?UTF-8?q?LIL-641=20=D0=9A=D0=BE=D0=BD=D0=BA=D1=83?= =?UTF-8?q?=D1=80=D1=81.=20=D0=93=D0=B0=D0=BB=D0=B5=D1=80=D0=B5=D1=8F=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=B4=D0=B3=D1=80=D1=83=D0=B6=D0=B0=D0=B5=D1=82?= =?UTF-8?q?=D1=81=D1=8F=20=D0=BD=D0=B5=D0=BA=D0=BE=D1=80=D1=80=D0=B5=D0=BA?= =?UTF-8?q?=D1=82=D0=BD=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/content/blocks/video.html | 4 +-- project/templates/blocks/lil_store_js.html | 1 + web/src/components/ContestWorks.vue | 29 +++++++++++++++++-- 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/apps/content/templates/content/blocks/video.html b/apps/content/templates/content/blocks/video.html index 72bc8f86..791920b1 100644 --- a/apps/content/templates/content/blocks/video.html +++ b/apps/content/templates/content/blocks/video.html @@ -6,10 +6,10 @@
{% if 'youtube.com' in content.url or 'youtu.be' in content.url %} + webkitallowfullscreen mozallowfullscreen allowfullscreen> {% elif 'vimeo.com' in content.url %} {% endif %}
diff --git a/project/templates/blocks/lil_store_js.html b/project/templates/blocks/lil_store_js.html index cb5eb6f8..e1698df0 100644 --- a/project/templates/blocks/lil_store_js.html +++ b/project/templates/blocks/lil_store_js.html @@ -3,6 +3,7 @@ window.LIL_STORE = { staticUrl: '{% static "" %}', accessToken: '{{ request.user.auth_token }}', + isMobile: {{ request.user_agent.is_mobile|yesno:"true,false" }}, user: { id: {{ request.user.id|default:'null' }}, } diff --git a/web/src/components/ContestWorks.vue b/web/src/components/ContestWorks.vue index 18bb1fc8..7a02e968 100644 --- a/web/src/components/ContestWorks.vue +++ b/web/src/components/ContestWorks.vue @@ -1,6 +1,6 @@