This commit is contained in:
j 2021-11-21 10:40:52 +01:00
parent f641dc3f9d
commit 7d70d5dee3
3 changed files with 4 additions and 4 deletions

View file

@ -317,10 +317,10 @@ function renderAnnotations(config) {
var title_zh = film.title.split(' / ')[1] || title_en
if (config.language == 'en') {
var director = film.director ? ` (${film.director[0]})` : ''
html.push(`<a href="/polis+film/${film.id}/">${title_en}${director}</a>`)
html.push(`<a href="/video/${film.id}/">${title_en}${director}</a>`)
} else {
var director = film.director ? ` (${film.director[1]})` : ''
html.push(`<a href="/polis+film/${film.id}/">${title_zh}${director}</a>`)
html.push(`<a href="/video/${film.id}/">${title_zh}${director}</a>`)
}
})
var films = html.length == 1 ? 'Film' : 'Films'

View file

@ -24,7 +24,7 @@
<p></p>
<div class="font-size-sm">
<div class="h3"><a href="{% url 'films'%}" class="font-bold">Films</a></div>
<div class="h3"><a href="{% url 'films'%}" class="font-bold">Videos</a></div>
<div class="h3"><a href="{% url 'texts' %}" class="font-bold">Assemblies</a></div>

View file

@ -28,7 +28,7 @@ class Film(models.Model):
return self.data.get('title', self.slug)
def get_absolute_url(self):
return '/' + settings.URL_PREFIX + 'film/' + self.slug
return '/' + settings.URL_PREFIX + 'video/' + self.slug
def related_texts(self):
from ..text.models import Text