|
|
|
@ -70,7 +70,7 @@ |
|
|
|
|
pdf.SetFontStyle('B',9) |
|
|
|
|
pdf.Cell(190,5, l(:label_history), "B") |
|
|
|
|
pdf.Ln |
|
|
|
|
for journal in issue.journals.find(:all, :include => :user, :order => "journals.created_on desc") |
|
|
|
|
for journal in issue.journals.find(:all, :include => [:user, :details], :order => "#{Journal.table_name}.created_on ASC") |
|
|
|
|
pdf.SetFontStyle('B',8) |
|
|
|
|
pdf.Cell(190,5, format_time(journal.created_on) + " - " + journal.user.name) |
|
|
|
|
pdf.Ln |
|
|
|
@ -86,15 +86,17 @@ |
|
|
|
|
pdf.Ln |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
pdf.SetFontStyle('B',9) |
|
|
|
|
pdf.Cell(190,5, l(:label_attachment_plural), "B") |
|
|
|
|
pdf.Ln |
|
|
|
|
for attachment in issue.attachments |
|
|
|
|
pdf.SetFontStyle('',8) |
|
|
|
|
pdf.Cell(80,5, attachment.filename) |
|
|
|
|
pdf.Cell(20,5, number_to_human_size(attachment.filesize),0,0,"R") |
|
|
|
|
pdf.Cell(25,5, format_date(attachment.created_on),0,0,"R") |
|
|
|
|
pdf.Cell(65,5, attachment.author.name,0,0,"R") |
|
|
|
|
if issue.attachments.any? |
|
|
|
|
pdf.SetFontStyle('B',9) |
|
|
|
|
pdf.Cell(190,5, l(:label_attachment_plural), "B") |
|
|
|
|
pdf.Ln |
|
|
|
|
for attachment in issue.attachments |
|
|
|
|
pdf.SetFontStyle('',8) |
|
|
|
|
pdf.Cell(80,5, attachment.filename) |
|
|
|
|
pdf.Cell(20,5, number_to_human_size(attachment.filesize),0,0,"R") |
|
|
|
|
pdf.Cell(25,5, format_date(attachment.created_on),0,0,"R") |
|
|
|
|
pdf.Cell(65,5, attachment.author.name,0,0,"R") |
|
|
|
|
pdf.Ln |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
%> |
|
|
|
|
%> |
|
|
|
|