##// END OF EJS Templates
Issue history is now 'oldest first' sorted....
Jean-Philippe Lang -
r627:ecf208f6604a
parent child
Show More
@@ -37,7 +37,7 class IssuesController < ApplicationController
37 def show
37 def show
38 @status_options = @issue.status.find_new_statuses_allowed_to(logged_in_user.role_for_project(@project), @issue.tracker) if logged_in_user
38 @status_options = @issue.status.find_new_statuses_allowed_to(logged_in_user.role_for_project(@project), @issue.tracker) if logged_in_user
39 @custom_values = @issue.custom_values.find(:all, :include => :custom_field)
39 @custom_values = @issue.custom_values.find(:all, :include => :custom_field)
40 @journals = @issue.journals.find(:all, :include => [:user, :details], :order => "#{Journal.table_name}.created_on desc")
40 @journals = @issue.journals.find(:all, :include => [:user, :details], :order => "#{Journal.table_name}.created_on ASC")
41 end
41 end
42
42
43 def export_pdf
43 def export_pdf
@@ -1,4 +1,4
1 <% note_id = journals.length %>
1 <% note_id = 1 %>
2 <% for journal in journals %>
2 <% for journal in journals %>
3 <h4><div style="float:right;"><%= link_to "##{note_id}", :anchor => "note-#{note_id}" %></div>
3 <h4><div style="float:right;"><%= link_to "##{note_id}", :anchor => "note-#{note_id}" %></div>
4 <%= content_tag('a', '', :name => "note-#{note_id}")%>
4 <%= content_tag('a', '', :name => "note-#{note_id}")%>
@@ -9,5 +9,5
9 <% end %>
9 <% end %>
10 </ul>
10 </ul>
11 <%= textilizable(journal.notes) unless journal.notes.blank? %>
11 <%= textilizable(journal.notes) unless journal.notes.blank? %>
12 <% note_id -= 1 %>
12 <% note_id += 1 %>
13 <% end %>
13 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now