]> source.dussan.org Git - redmine.git/commitdiff
Fix associated revisions label on issue page.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 8 Jan 2011 00:19:51 +0000 (00:19 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 8 Jan 2011 00:19:51 +0000 (00:19 +0000)
r4613 shows git long hash value.

Contributed by Yuya Nishihara.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4652 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) %>