Feature #40266 » helper.diff
lib/redmine/export/pdf/issues_pdf_helper.rb | ||
---|---|---|
247 | 247 |
pdf.ln |
248 | 248 |
issue.attachments.each do |attachment| |
249 | 249 |
pdf.SetFontStyle('', 8) |
250 |
pdf.RDMCell(80, 5, attachment.filename) |
|
250 |
# start patch *** create links to attachments |
|
251 |
url = send(:attachment_url, attachment, {}) |
|
252 |
link = link_to attachment.filename, url, {} |
|
253 |
pdf.RDMCell(80, 5, pdf.write_html(link)) |
|
254 |
# end patch **** |
|
255 |
#pdf.RDMCell(80, 5, attachment.filename) |
|
251 | 256 |
pdf.RDMCell(20, 5, number_to_human_size(attachment.filesize), 0, 0, "R") |
252 | 257 |
pdf.RDMCell(25, 5, format_date(attachment.created_on), 0, 0, "R") |
253 | 258 |
pdf.RDMCell(65, 5, attachment.author.name, 0, 0, "R") |