OSDN Git Service

Adds links to versions on changelog.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 15 Nov 2009 15:44:48 +0000 (15:44 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 15 Nov 2009 15:44:48 +0000 (15:44 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3067 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/projects/changelog.rhtml

index 9fe1069..a1cd99b 100644 (file)
@@ -5,7 +5,8 @@
 <% end %>
 
 <% @versions.each do |version| %>   
-    <a name="<%= version.name %>"><h3 class="icon22 icon22-package"><%= version.name %></h3></a>
+    <%= tag 'a', :name => version.name %>
+    <h3 class="icon22 icon22-package"><%= link_to h(version.name), :controller => 'versions', :action => 'show', :id => version %></h3>
     <% if version.effective_date %>
       <p><%= format_date(version.effective_date) %></p>
     <% end %>