@@ -1,100 +1,100 | |||||
1 | <% pdf.SetFontStyle('B',11) |
|
1 | <% pdf.SetFontStyle('B',11) | |
2 | pdf.Cell(190,10, "#{issue.project.name} - #{issue.tracker.name} # #{issue.long_id} - #{issue.subject}") |
|
2 | pdf.Cell(190,10, "#{issue.project.name} - #{issue.tracker.name} # #{issue.long_id} - #{issue.subject}") | |
3 | pdf.Ln |
|
3 | pdf.Ln | |
4 |
|
4 | |||
5 | y0 = pdf.GetY |
|
5 | y0 = pdf.GetY | |
6 |
|
6 | |||
7 | pdf.SetFontStyle('B',9) |
|
7 | pdf.SetFontStyle('B',9) | |
8 | pdf.Cell(35,5, l(:field_status) + ":","LT") |
|
8 | pdf.Cell(35,5, l(:field_status) + ":","LT") | |
9 | pdf.SetFontStyle('',9) |
|
9 | pdf.SetFontStyle('',9) | |
10 | pdf.Cell(60,5, issue.status.name,"RT") |
|
10 | pdf.Cell(60,5, issue.status.name,"RT") | |
11 | pdf.SetFontStyle('B',9) |
|
11 | pdf.SetFontStyle('B',9) | |
12 | pdf.Cell(35,5, l(:field_priority) + ":","LT") |
|
12 | pdf.Cell(35,5, l(:field_priority) + ":","LT") | |
13 | pdf.SetFontStyle('',9) |
|
13 | pdf.SetFontStyle('',9) | |
14 | pdf.Cell(60,5, issue.priority.name,"RT") |
|
14 | pdf.Cell(60,5, issue.priority.name,"RT") | |
15 | pdf.Ln |
|
15 | pdf.Ln | |
16 |
|
16 | |||
17 | pdf.SetFontStyle('B',9) |
|
17 | pdf.SetFontStyle('B',9) | |
18 | pdf.Cell(35,5, l(:field_author) + ":","L") |
|
18 | pdf.Cell(35,5, l(:field_author) + ":","L") | |
19 | pdf.SetFontStyle('',9) |
|
19 | pdf.SetFontStyle('',9) | |
20 | pdf.Cell(60,5, issue.author.name,"R") |
|
20 | pdf.Cell(60,5, issue.author.name,"R") | |
21 | pdf.SetFontStyle('B',9) |
|
21 | pdf.SetFontStyle('B',9) | |
22 | pdf.Cell(35,5, l(:field_category) + ":","L") |
|
22 | pdf.Cell(35,5, l(:field_category) + ":","L") | |
23 | pdf.SetFontStyle('',9) |
|
23 | pdf.SetFontStyle('',9) | |
24 | pdf.Cell(60,5, (issue.category ? issue.category.name : "-"),"R") |
|
24 | pdf.Cell(60,5, (issue.category ? issue.category.name : "-"),"R") | |
25 | pdf.Ln |
|
25 | pdf.Ln | |
26 |
|
26 | |||
27 | pdf.SetFontStyle('B',9) |
|
27 | pdf.SetFontStyle('B',9) | |
28 | pdf.Cell(35,5, l(:field_created_on) + ":","L") |
|
28 | pdf.Cell(35,5, l(:field_created_on) + ":","L") | |
29 | pdf.SetFontStyle('',9) |
|
29 | pdf.SetFontStyle('',9) | |
30 | pdf.Cell(60,5, format_date(issue.created_on),"R") |
|
30 | pdf.Cell(60,5, format_date(issue.created_on),"R") | |
31 | pdf.SetFontStyle('B',9) |
|
31 | pdf.SetFontStyle('B',9) | |
32 | pdf.Cell(35,5, l(:field_assigned_to) + ":","L") |
|
32 | pdf.Cell(35,5, l(:field_assigned_to) + ":","L") | |
33 | pdf.SetFontStyle('',9) |
|
33 | pdf.SetFontStyle('',9) | |
34 | pdf.Cell(60,5, (issue.assigned_to ? issue.assigned_to.name : "-"),"R") |
|
34 | pdf.Cell(60,5, (issue.assigned_to ? issue.assigned_to.name : "-"),"R") | |
35 | pdf.Ln |
|
35 | pdf.Ln | |
36 |
|
36 | |||
37 | pdf.SetFontStyle('B',9) |
|
37 | pdf.SetFontStyle('B',9) | |
38 | pdf.Cell(35,5, l(:field_updated_on) + ":","LB") |
|
38 | pdf.Cell(35,5, l(:field_updated_on) + ":","LB") | |
39 | pdf.SetFontStyle('',9) |
|
39 | pdf.SetFontStyle('',9) | |
40 | pdf.Cell(60,5, format_date(issue.updated_on),"RB") |
|
40 | pdf.Cell(60,5, format_date(issue.updated_on),"RB") | |
41 | pdf.SetFontStyle('B',9) |
|
41 | pdf.SetFontStyle('B',9) | |
42 | pdf.Cell(35,5, l(:field_due_date) + ":","LB") |
|
42 | pdf.Cell(35,5, l(:field_due_date) + ":","LB") | |
43 | pdf.SetFontStyle('',9) |
|
43 | pdf.SetFontStyle('',9) | |
44 | pdf.Cell(60,5, format_date(issue.due_date),"RB") |
|
44 | pdf.Cell(60,5, format_date(issue.due_date),"RB") | |
45 | pdf.Ln |
|
45 | pdf.Ln | |
46 |
|
46 | |||
47 | for custom_value in issue.custom_values |
|
47 | for custom_value in issue.custom_values | |
48 | pdf.SetFontStyle('B',9) |
|
48 | pdf.SetFontStyle('B',9) | |
49 | pdf.Cell(35,5, custom_value.custom_field.name + ":","L") |
|
49 | pdf.Cell(35,5, custom_value.custom_field.name + ":","L") | |
50 | pdf.SetFontStyle('',9) |
|
50 | pdf.SetFontStyle('',9) | |
51 | pdf.MultiCell(155,5, (show_value custom_value),"R") |
|
51 | pdf.MultiCell(155,5, (show_value custom_value),"R") | |
52 | end |
|
52 | end | |
53 |
|
53 | |||
54 | pdf.SetFontStyle('B',9) |
|
54 | pdf.SetFontStyle('B',9) | |
55 | pdf.Cell(35,5, l(:field_subject) + ":","LTB") |
|
55 | pdf.Cell(35,5, l(:field_subject) + ":","LTB") | |
56 | pdf.SetFontStyle('',9) |
|
56 | pdf.SetFontStyle('',9) | |
57 | pdf.Cell(155,5, issue.subject,"RTB") |
|
57 | pdf.Cell(155,5, issue.subject,"RTB") | |
58 | pdf.Ln |
|
58 | pdf.Ln | |
59 |
|
59 | |||
60 | pdf.SetFontStyle('B',9) |
|
60 | pdf.SetFontStyle('B',9) | |
61 | pdf.Cell(35,5, l(:field_description) + ":") |
|
61 | pdf.Cell(35,5, l(:field_description) + ":") | |
62 | pdf.SetFontStyle('',9) |
|
62 | pdf.SetFontStyle('',9) | |
63 | pdf.MultiCell(155,5, issue.description,"BR") |
|
63 | pdf.MultiCell(155,5, issue.description,"BR") | |
64 |
|
64 | |||
65 | pdf.Line(pdf.GetX, y0, pdf.GetX, pdf.GetY) |
|
65 | pdf.Line(pdf.GetX, y0, pdf.GetX, pdf.GetY) | |
66 | pdf.Line(pdf.GetX, pdf.GetY, 170, pdf.GetY) |
|
66 | pdf.Line(pdf.GetX, pdf.GetY, 170, pdf.GetY) | |
67 |
|
67 | |||
68 | pdf.Ln |
|
68 | pdf.Ln | |
69 |
|
69 | |||
70 | pdf.SetFontStyle('B',9) |
|
70 | pdf.SetFontStyle('B',9) | |
71 | pdf.Cell(190,5, l(:label_history), "B") |
|
71 | pdf.Cell(190,5, l(:label_history), "B") | |
72 | pdf.Ln |
|
72 | pdf.Ln | |
73 | for journal in issue.journals.find(:all, :include => :user, :order => "journals.created_on desc") |
|
73 | for journal in issue.journals.find(:all, :include => :user, :order => "journals.created_on desc") | |
74 | pdf.SetFontStyle('B',8) |
|
74 | pdf.SetFontStyle('B',8) | |
75 | pdf.Cell(190,5, format_time(journal.created_on) + " - " + journal.user.name) |
|
75 | pdf.Cell(190,5, format_time(journal.created_on) + " - " + journal.user.name) | |
76 | pdf.Ln |
|
76 | pdf.Ln | |
77 | pdf.SetFontStyle('I',8) |
|
77 | pdf.SetFontStyle('I',8) | |
78 | for detail in journal.details |
|
78 | for detail in journal.details | |
79 | pdf.Cell(190,5, "- " + show_detail(detail, true)) |
|
79 | pdf.Cell(190,5, "- " + show_detail(detail, true)) | |
80 | pdf.Ln |
|
80 | pdf.Ln | |
81 | end |
|
81 | end | |
82 | if journal.notes? |
|
82 | if journal.notes? | |
83 | pdf.SetFontStyle('',8) |
|
83 | pdf.SetFontStyle('',8) | |
84 | pdf.MultiCell(190,5, journal.notes) |
|
84 | pdf.MultiCell(190,5, journal.notes) | |
85 | end |
|
85 | end | |
86 | pdf.Ln |
|
86 | pdf.Ln | |
87 | end |
|
87 | end | |
88 |
|
88 | |||
89 | pdf.SetFontStyle('B',9) |
|
89 | pdf.SetFontStyle('B',9) | |
90 | pdf.Cell(190,5, l(:label_attachment_plural), "B") |
|
90 | pdf.Cell(190,5, l(:label_attachment_plural), "B") | |
91 | pdf.Ln |
|
91 | pdf.Ln | |
92 | for attachment in issue.attachments |
|
92 | for attachment in issue.attachments | |
93 | pdf.SetFontStyle('',8) |
|
93 | pdf.SetFontStyle('',8) | |
94 | pdf.Cell(80,5, attachment.filename) |
|
94 | pdf.Cell(80,5, attachment.filename) | |
95 | pdf.Cell(20,5, number_to_human_size(attachment.filesize),0,0,"R") |
|
95 | pdf.Cell(20,5, number_to_human_size(attachment.filesize),0,0,"R") | |
96 |
pdf.Cell(2 |
|
96 | pdf.Cell(25,5, format_date(attachment.created_on),0,0,"R") | |
97 |
pdf.Cell( |
|
97 | pdf.Cell(65,5, attachment.author.name,0,0,"R") | |
98 | pdf.Ln |
|
98 | pdf.Ln | |
99 | end |
|
99 | end | |
100 | %> No newline at end of file |
|
100 | %> |
General Comments 0
You need to be logged in to leave comments.
Login now