@@ -41,7 +41,7 class IssuesController < ApplicationController | |||||
41 | def export_pdf |
|
41 | def export_pdf | |
42 | @custom_values = @issue.custom_values.find(:all, :include => :custom_field) |
|
42 | @custom_values = @issue.custom_values.find(:all, :include => :custom_field) | |
43 | @options_for_rfpdf ||= {} |
|
43 | @options_for_rfpdf ||= {} | |
44 |
@options_for_rfpdf[:file_name] = "#{@project.name}_#{@issue. |
|
44 | @options_for_rfpdf[:file_name] = "#{@project.name}_#{@issue.id}.pdf" | |
45 | end |
|
45 | end | |
46 |
|
46 | |||
47 | def edit |
|
47 | def edit |
@@ -84,10 +84,6 class Issue < ActiveRecord::Base | |||||
84 | relations_from.each(&:set_issue_to_dates) |
|
84 | relations_from.each(&:set_issue_to_dates) | |
85 |
end |
|
85 | end | |
86 |
|
86 | |||
87 | def long_id |
|
|||
88 | "%05d" % self.id |
|
|||
89 | end |
|
|||
90 |
|
||||
91 | def custom_value_for(custom_field) |
|
87 | def custom_value_for(custom_field) | |
92 | self.custom_values.each {|v| return v if v.custom_field_id == custom_field.id } |
|
88 | self.custom_values.each {|v| return v if v.custom_field_id == custom_field.id } | |
93 | return nil |
|
89 | return nil |
@@ -1,5 +1,5 | |||||
1 | <% pdf.SetFontStyle('B',11) |
|
1 | <% pdf.SetFontStyle('B',11) | |
2 |
pdf.Cell(190,10, "#{issue.project.name} - #{issue.tracker.name} # #{issue. |
|
2 | pdf.Cell(190,10, "#{issue.project.name} - #{issue.tracker.name} # #{issue.id}: #{issue.subject}") | |
3 | pdf.Ln |
|
3 | pdf.Ln | |
4 |
|
4 | |||
5 | y0 = pdf.GetY |
|
5 | y0 = pdf.GetY |
@@ -6,7 +6,7 | |||||
6 | <div class="box"> |
|
6 | <div class="box"> | |
7 | <p><label><%= l(:label_issue_plural) %>:</label> |
|
7 | <p><label><%= l(:label_issue_plural) %>:</label> | |
8 | <% for issue in @issues %> |
|
8 | <% for issue in @issues %> | |
9 | <b><%= link_to issue.long_id, :controller => 'issues', :action => 'show', :id => issue %></b> - <%=h issue.subject %> |
|
9 | <%= link_to_issue issue %>: <%=h issue.subject %> | |
10 | <%= hidden_field_tag "issue_ids[]", issue.id %><br /> |
|
10 | <%= hidden_field_tag "issue_ids[]", issue.id %><br /> | |
11 | <% end %> |
|
11 | <% end %> | |
12 | <i>(<%= @issues.length%> <%= lwr(:label_issue, @issues.length)%>)</i></p> |
|
12 | <i>(<%= @issues.length%> <%= lwr(:label_issue, @issues.length)%>)</i></p> |
General Comments 0
You need to be logged in to leave comments.
Login now