summaryrefslogtreecommitdiffstats
path: root/app/views/issues/_history.rhtml
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-08-12 13:57:29 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-08-12 13:57:29 +0000
commit6862b979090482785f336130952dcf5a7e97db8c (patch)
tree7dccbda74cb1ab2935e6812c6887c3cff78589fc /app/views/issues/_history.rhtml
parent64e91b2e13813f129db910efd976080e02fd0a45 (diff)
downloadredmine-6862b979090482785f336130952dcf5a7e97db8c.tar.gz
redmine-6862b979090482785f336130952dcf5a7e97db8c.zip
Removed IssuesController#history, all changes are now displayed on issues/show (not only the last 15).
Added anchor links to issue notes, eg: /issues/show/1#note-3 git-svn-id: http://redmine.rubyforge.org/svn/trunk@613 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues/_history.rhtml')
-rw-r--r--app/views/issues/_history.rhtml10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/views/issues/_history.rhtml b/app/views/issues/_history.rhtml
index ad5141581..1ad0c235d 100644
--- a/app/views/issues/_history.rhtml
+++ b/app/views/issues/_history.rhtml
@@ -1,11 +1,13 @@
+<% note_id = journals.length %>
<% for journal in journals %>
- <h4><%= format_time(journal.created_on) %> - <%= journal.user.name %></h4>
+ <h4><div style="float:right;"><%= link_to "##{note_id}", :anchor => "note-#{note_id}" %></div>
+ <%= content_tag('a', '', :name => "note-#{note_id}")%>
+ <%= format_time(journal.created_on) %> - <%= journal.user.name %></h4>
<ul>
<% for detail in journal.details %>
<li><%= show_detail(detail) %></li>
<% end %>
</ul>
- <% if journal.notes? %>
- <%= textilizable(journal.notes) %>
- <% end %>
+ <%= textilizable(journal.notes) unless journal.notes.blank? %>
+ <% note_id -= 1 %>
<% end %>