]> source.dussan.org Git - redmine.git/commitdiff
Merged r4652 from trunk.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 8 Jan 2011 00:24:43 +0000 (00:24 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 8 Jan 2011 00:24:43 +0000 (00:24 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.1-stable@4653 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb
app/views/issues/_changesets.rhtml

index 474c68c9134c2064dfb558e88f3867dc4f144cf2..3d1dbe9f1b31550f9e434f95951224248fc28300 100644 (file)
@@ -44,6 +44,8 @@ class IssuesController < ApplicationController
   include AttachmentsHelper
   helper :queries
   include QueriesHelper
+  helper :repositories
+  include RepositoriesHelper
   helper :sort
   include SortHelper
   include IssuesHelper
index 52cd60ff57126e52f0c9ffe18f5769685b032d08..d5a292896cce220d231a29b1f248257cd24594dc 100644 (file)
@@ -1,7 +1,7 @@
 <% changesets.each do |changeset| %>
     <div class="changeset <%= cycle('odd', 'even') %>">
-    <p><%= link_to("#{l(:label_revision)} #{changeset.revision}",
-                :controller => 'repositories', :action => 'revision', :id => changeset.project, :rev => changeset.revision) %><br />
+    <p><%= link_to_revision(changeset, changeset.project,
+                            :text => "#{l(:label_revision)} #{changeset.format_identifier}") %><br />
         <span class="author"><%= authoring(changeset.committed_on, changeset.author) %></span></p>
     <div class="changeset-changes">
         <%= textilizable(changeset, :comments) %>