fix urls
This commit is contained in:
parent
f641dc3f9d
commit
7d70d5dee3
3 changed files with 4 additions and 4 deletions
|
@ -317,10 +317,10 @@ function renderAnnotations(config) {
|
||||||
var title_zh = film.title.split(' / ')[1] || title_en
|
var title_zh = film.title.split(' / ')[1] || title_en
|
||||||
if (config.language == 'en') {
|
if (config.language == 'en') {
|
||||||
var director = film.director ? ` (${film.director[0]})` : ''
|
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 {
|
} else {
|
||||||
var director = film.director ? ` (${film.director[1]})` : ''
|
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'
|
var films = html.length == 1 ? 'Film' : 'Films'
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
<p></p>
|
<p></p>
|
||||||
|
|
||||||
<div class="font-size-sm">
|
<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>
|
<div class="h3"><a href="{% url 'texts' %}" class="font-bold">Assemblies</a></div>
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ class Film(models.Model):
|
||||||
return self.data.get('title', self.slug)
|
return self.data.get('title', self.slug)
|
||||||
|
|
||||||
def get_absolute_url(self):
|
def get_absolute_url(self):
|
||||||
return '/' + settings.URL_PREFIX + 'film/' + self.slug
|
return '/' + settings.URL_PREFIX + 'video/' + self.slug
|
||||||
|
|
||||||
def related_texts(self):
|
def related_texts(self):
|
||||||
from ..text.models import Text
|
from ..text.models import Text
|
||||||
|
|
Loading…
Reference in a new issue