From ac1ae3780318817fb8e2df86c667debc136ac414 Mon Sep 17 00:00:00 2001 From: j Date: Sun, 21 Nov 2021 11:58:48 +0100 Subject: [PATCH] rename --- app/static/js/play.js | 2 -- app/templates/base.html | 2 +- app/text/models.py | 2 +- app/urls.py | 4 ++-- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/static/js/play.js b/app/static/js/play.js index 90ea413..ab9e34a 100644 --- a/app/static/js/play.js +++ b/app/static/js/play.js @@ -433,7 +433,5 @@ if (config.annotations) { } else { loadAnnotations(config) } - - window.addEventListener('resize', resize, false); diff --git a/app/templates/base.html b/app/templates/base.html index 82cc3b4..a209627 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -20,7 +20,7 @@ diff --git a/app/text/models.py b/app/text/models.py index f17abc0..4ebbe45 100644 --- a/app/text/models.py +++ b/app/text/models.py @@ -56,7 +56,7 @@ class Text(models.Model): return self.title def get_absolute_url(self): - return '/' + settings.URL_PREFIX + 'assemblies/' + self.slug + return '/' + settings.URL_PREFIX + 'cuts/' + self.slug def get_annotations(self): api = ox.api.signin(settings.DEFAULT_PANDORA_API) diff --git a/app/urls.py b/app/urls.py index 24bdb8d..72b7a80 100755 --- a/app/urls.py +++ b/app/urls.py @@ -31,8 +31,8 @@ urlpatterns = [ path(settings.URL_PREFIX + 'edit//play/', video.edit_play, name='edit_play'), path(settings.URL_PREFIX + 'edit//', video.edit, name='edit'), path(settings.URL_PREFIX + 'tv/', video.tv, name='tv'), - path(settings.URL_PREFIX + 'assemblies/', text.texts, name='texts'), - path(settings.URL_PREFIX + 'assemblies/', text.text, name='text'), + path(settings.URL_PREFIX + 'cuts/', text.texts, name='texts'), + path(settings.URL_PREFIX + 'cuts/', text.text, name='text'), #path(settings.URL_PREFIX + 'index-alt/', text.index_alt, name='index_alt'), path(settings.URL_PREFIX + 'about/', text.about, name='about'), path(settings.URL_PREFIX + 'contact/', contact, name='contact'),