Project

General

Profile

Feature #40266 » helper.diff

Yazan Al aeddin, 2024-02-19 14:27

View differences:

lib/redmine/export/pdf/issues_pdf_helper.rb
pdf.ln
issue.attachments.each do |attachment|
pdf.SetFontStyle('', 8)
pdf.RDMCell(80, 5, attachment.filename)
# start patch *** create links to attachments
url = send(:attachment_url, attachment, {})
link = link_to attachment.filename, url, {}
pdf.RDMCell(80, 5, pdf.write_html(link))
# end patch ****
#pdf.RDMCell(80, 5, attachment.filename)
pdf.RDMCell(20, 5, number_to_human_size(attachment.filesize), 0, 0, "R")
pdf.RDMCell(25, 5, format_date(attachment.created_on), 0, 0, "R")
pdf.RDMCell(65, 5, attachment.author.name, 0, 0, "R")
(1-1/5)