Hide "Reason" in Application PDF if there is none.
This commit is contained in:
parent
59e6218a80
commit
e4367051df
@ -828,8 +828,9 @@ class ApplicationPDF(PDFView):
|
|||||||
# text
|
# text
|
||||||
story.append(Paragraph("%s" % application.public_version.text.replace('\r\n','<br/>'), stylesheet['Paragraph']))
|
story.append(Paragraph("%s" % application.public_version.text.replace('\r\n','<br/>'), stylesheet['Paragraph']))
|
||||||
# reason
|
# reason
|
||||||
story.append(Paragraph(_("Reason")+":", stylesheet['Heading3']))
|
if application.public_version.reason:
|
||||||
story.append(Paragraph("%s" % application.public_version.reason.replace('\r\n','<br/>'), stylesheet['Paragraph']))
|
story.append(Paragraph(_("Reason")+":", stylesheet['Heading3']))
|
||||||
|
story.append(Paragraph("%s" % application.public_version.reason.replace('\r\n','<br/>'), stylesheet['Paragraph']))
|
||||||
return story
|
return story
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user