From 11dc9f3f571d8fb253ddb598df8cd75ab7abd0c0 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 24 Nov 2021 12:50:26 +0100 Subject: [PATCH] remove phantas.ma links --- app/contact/views.py | 2 +- app/static/js/film.js | 2 +- app/templates/fallback.html | 4 ++-- app/templates/film.html | 4 ++-- app/templates/index.html | 20 ++++++++------------ app/templates/text.html | 17 +++-------------- 6 files changed, 17 insertions(+), 32 deletions(-) diff --git a/app/contact/views.py b/app/contact/views.py index 91a0cd2..beb08cb 100644 --- a/app/contact/views.py +++ b/app/contact/views.py @@ -11,7 +11,7 @@ def index(request): form = forms.ContactForm(request.POST) if form.is_valid(): message = 'From: %s\n\n%s' % (form.cleaned_data['email'], form.cleaned_data['message']) - subject = 'Phantas.ma/polis contact message' + subject = 'njp.ma contact message' from_ = settings.CONTACT_FROM_EMAIL to = [settings.CONTACT_TO_EMAIL] msg = EmailMessage(subject, message, from_, to, reply_to=[form.cleaned_data['email']]) diff --git a/app/static/js/film.js b/app/static/js/film.js index eef6f54..d1f0058 100644 --- a/app/static/js/film.js +++ b/app/static/js/film.js @@ -31,7 +31,7 @@ document.querySelector('a#play-fullscreen').addEventListener('click', event => { video.classList.add('player') video.classList.add('fullscreen') //setVideoSrc(video, 'https://pad.ma/' + film.id + '/480p.webm') - video.src = `${film.prefix}stream/${film.id}.mp4` + video.src = `${film.prefix}/stream/${film.id}.mp4` video.controls = true video.controlsList = 'nodownload' document.querySelector('main').appendChild(video) diff --git a/app/templates/fallback.html b/app/templates/fallback.html index e30c7aa..c8817ae 100644 --- a/app/templates/fallback.html +++ b/app/templates/fallback.html @@ -67,12 +67,12 @@ - phantas.ma + njp.ma
-

Phantas.ma

+

njp.ma

diff --git a/app/templates/film.html b/app/templates/film.html index b29f97a..e0758f0 100644 --- a/app/templates/film.html +++ b/app/templates/film.html @@ -5,8 +5,8 @@ - - + + diff --git a/app/templates/index.html b/app/templates/index.html index c4337c7..645e82e 100644 --- a/app/templates/index.html +++ b/app/templates/index.html @@ -1,21 +1,17 @@ {% extends "base.html" %} {% block head %} - - - - - + + + - + - - - + + - - - + + {% endblock head %} {% block body_class%}animated animated-text body--home{% endblock %} {% block main %} diff --git a/app/templates/text.html b/app/templates/text.html index 6c67f74..8e1b4f0 100644 --- a/app/templates/text.html +++ b/app/templates/text.html @@ -4,26 +4,15 @@ - - + + - {% if text.data.related %} - - - - - {% elif text.data.item %} - - - - - {% endif %} - +