Issue history is now 'oldest first' sorted.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@630 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-08-14 09:02:40 +00:00
parent b3f3634df3
commit ecf208f660
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ class IssuesController < ApplicationController
def show
@status_options = @issue.status.find_new_statuses_allowed_to(logged_in_user.role_for_project(@project), @issue.tracker) if logged_in_user
@custom_values = @issue.custom_values.find(:all, :include => :custom_field)
@journals = @issue.journals.find(:all, :include => [:user, :details], :order => "#{Journal.table_name}.created_on desc")
@journals = @issue.journals.find(:all, :include => [:user, :details], :order => "#{Journal.table_name}.created_on ASC")
end
def export_pdf

View File

@ -1,4 +1,4 @@
<% note_id = journals.length %>
<% note_id = 1 %>
<% for journal in journals %>
<h4><div style="float:right;"><%= link_to "##{note_id}", :anchor => "note-#{note_id}" %></div>
<%= content_tag('a', '', :name => "note-#{note_id}")%>
@ -9,5 +9,5 @@
<% end %>
</ul>
<%= textilizable(journal.notes) unless journal.notes.blank? %>
<% note_id -= 1 %>
<% note_id += 1 %>
<% end %>