self->document
This commit is contained in:
parent
30af377ecb
commit
7369954c5f
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ def index(request, fragment):
|
||||||
link = request.build_absolute_uri(document.get_absolute_url())
|
link = request.build_absolute_uri(document.get_absolute_url())
|
||||||
# FIXME: get preview image or fragment parse from url
|
# FIXME: get preview image or fragment parse from url
|
||||||
public_id = ox.toAZ(document.id)
|
public_id = ox.toAZ(document.id)
|
||||||
if self.extension != 'html':
|
if document.extension != 'html':
|
||||||
preview = '/documents/%s/512p.jpg' % public_id
|
preview = '/documents/%s/512p.jpg' % public_id
|
||||||
if page:
|
if page:
|
||||||
preview = '/documents/%s/512p%s.jpg' % (public_id, page)
|
preview = '/documents/%s/512p%s.jpg' % (public_id, page)
|
||||||
|
|
Loading…
Reference in a new issue