summary: make thumbnail a link to the PDF file

This commit is contained in:
Frédéric Péters 2015-10-11 17:23:37 +02:00
parent 579179e0be
commit f3971403a3
2 changed files with 7 additions and 2 deletions

View File

@ -52,4 +52,4 @@ class Association(models.Model):
def formdata_url(self):
site, formdef = self.formdef_reference.split(':')
wcs_site = get_wcs_services().get(site)
return '%s%s/%s' % (wcs_site.get('url'), formdef, self.formdata_id)
return '%sbackoffice/management/%s/%s/' % (wcs_site.get('url'), formdef, self.formdata_id)

View File

@ -1 +1,6 @@
<p class="thumbnail"><img src="{{ site_base }}{{ object.content.url }}.png" alt=""/></p>
{% load i18n %}
<p class="thumbnail">
<a href="{{ site_base }}{{ object.content.url }}">
<img src="{{ site_base }}{{ object.content.url }}.png" alt=""/>
</a>
</p>