##// END OF EJS Templates
Main project list now displays root projects with their subprojects....
Main project list now displays root projects with their subprojects. Added files turned into links (if not removed) on the issue history. git-svn-id: http://redmine.rubyforge.org/svn/trunk@729 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r493:7faf77804d17
r718:f2a058f8cf04
Show More
export_issues_pdf.rfpdf
48 lines | 1.7 KiB | text/plain | TextLexer
/ app / views / projects / export_issues_pdf.rfpdf
Jean-Philippe Lang
fix for #8973: Export feature(to csv/pdf) doesn't work in Japanese...
r284 <% pdf=IfpdfHelper::IFPDF.new(current_language)
Jean-Philippe Lang
issue list pdf export modified...
r229 pdf.SetTitle("#{@project.name} - #{l(:label_issue_plural)}")
Jean-Philippe Lang
* single/multiple issues pdf export added...
r35 pdf.AliasNbPages
Jean-Philippe Lang
git-svn-id: http://redmine.rubyforge.org/svn/trunk@51 e93f8b46-1217-0410-a6f0-8f06a7374b81
r49 pdf.footer_date = format_date(Date.today)
Jean-Philippe Lang
issue list pdf export modified...
r229 pdf.AddPage("L")
row_height = 7
#
# title
#
Jean-Philippe Lang
fix for #8973: Export feature(to csv/pdf) doesn't work in Japanese...
r284 pdf.SetFontStyle('B',11)
Jean-Philippe Lang
issue list pdf export modified...
r229 pdf.Cell(190,10, "#{@project.name} - #{l(:label_issue_plural)}")
pdf.Ln
#
# headers
#
Jean-Philippe Lang
fix for #8973: Export feature(to csv/pdf) doesn't work in Japanese...
r284 pdf.SetFontStyle('B',10)
Jean-Philippe Lang
issue list pdf export modified...
r229 pdf.SetFillColor(230, 230, 230)
pdf.Cell(15, row_height, "#", 0, 0, 'L', 1)
pdf.Cell(30, row_height, l(:field_tracker), 0, 0, 'L', 1)
pdf.Cell(30, row_height, l(:field_status), 0, 0, 'L', 1)
pdf.Cell(30, row_height, l(:field_priority), 0, 0, 'L', 1)
pdf.Cell(40, row_height, l(:field_author), 0, 0, 'L', 1)
pdf.Cell(25, row_height, l(:field_updated_on), 0, 0, 'L', 1)
pdf.Cell(0, row_height, l(:field_subject), 0, 0, 'L', 1)
pdf.Line(10, pdf.GetY, 287, pdf.GetY)
pdf.Ln
pdf.Line(10, pdf.GetY, 287, pdf.GetY)
pdf.SetY(pdf.GetY() + 1)
#
# rows
#
Jean-Philippe Lang
fix for #8973: Export feature(to csv/pdf) doesn't work in Japanese...
r284 pdf.SetFontStyle('',9)
Jean-Philippe Lang
issue list pdf export modified...
r229 pdf.SetFillColor(255, 255, 255)
@issues.each do |issue|
pdf.Cell(15, row_height, issue.id.to_s, 0, 0, 'L', 1)
pdf.Cell(30, row_height, issue.tracker.name, 0, 0, 'L', 1)
pdf.Cell(30, row_height, issue.status.name, 0, 0, 'L', 1)
pdf.Cell(30, row_height, issue.priority.name, 0, 0, 'L', 1)
pdf.Cell(40, row_height, issue.author.name, 0, 0, 'L', 1)
pdf.Cell(25, row_height, format_date(issue.updated_on), 0, 0, 'L', 1)
Jean-Philippe Lang
Subproject name added in csv and pdf exports....
r493 pdf.MultiCell(0, row_height, (@project == issue.project ? issue.subject : "#{issue.project.name} - #{issue.subject}"))
Jean-Philippe Lang
issue list pdf export modified...
r229 pdf.Line(10, pdf.GetY, 287, pdf.GetY)
pdf.SetY(pdf.GetY() + 1)
end
Jean-Philippe Lang
* single/multiple issues pdf export added...
r35 %>
<%= pdf.Output %>