Commit ecf208f6 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Issue history is now 'oldest first' sorted.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@630 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent b3f3634d
......@@ -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
......
<% 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 %>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment