#239 don't show supporters in the application PDF, if they are disabled
This commit is contained in:
parent
039446a7ca
commit
1b108603ea
@ -752,8 +752,11 @@ class ApplicationPDF(PDFView):
|
|||||||
|
|
||||||
# supporters
|
# supporters
|
||||||
cell2a = []
|
cell2a = []
|
||||||
cell2a.append(Paragraph("<font name='Ubuntu-Bold'>%s:</font><seqreset id='counter'>" % _("Supporters"), stylesheet['Heading4']))
|
|
||||||
cell2b = []
|
cell2b = []
|
||||||
|
if config['application_min_supporters']:
|
||||||
|
|
||||||
|
cell2a.append(Paragraph("<font name='Ubuntu-Bold'>%s:</font><seqreset id='counter'>" % _("Supporters"), stylesheet['Heading4']))
|
||||||
|
|
||||||
for s in application.supporter.all():
|
for s in application.supporter.all():
|
||||||
cell2b.append(Paragraph("<seq id='counter'/>. %s" % unicode(s.profile), stylesheet['Signaturefield']))
|
cell2b.append(Paragraph("<seq id='counter'/>. %s" % unicode(s.profile), stylesheet['Signaturefield']))
|
||||||
if application.status == "pub":
|
if application.status == "pub":
|
||||||
|
Loading…
Reference in New Issue
Block a user