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