diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-01-08 00:19:51 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-01-08 00:19:51 +0000 |
commit | 3ad213c29ab8be303fe7514c613919b44bffc5a9 (patch) | |
tree | cd4bda53650f04d273f52dc6d8d2ec8f8096c59d /app | |
parent | e7a9c386efc92d84e9c371bd976ec5d395705e23 (diff) | |
download | redmine-3ad213c29ab8be303fe7514c613919b44bffc5a9.tar.gz redmine-3ad213c29ab8be303fe7514c613919b44bffc5a9.zip |
Fix associated revisions label on issue page.
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
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/issues_controller.rb | 2 | ||||
-rw-r--r-- | app/views/issues/_changesets.rhtml | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 474c68c91..3d1dbe9f1 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -44,6 +44,8 @@ class IssuesController < ApplicationController include AttachmentsHelper helper :queries include QueriesHelper + helper :repositories + include RepositoriesHelper helper :sort include SortHelper include IssuesHelper diff --git a/app/views/issues/_changesets.rhtml b/app/views/issues/_changesets.rhtml index 52cd60ff5..d5a292896 100644 --- a/app/views/issues/_changesets.rhtml +++ b/app/views/issues/_changesets.rhtml @@ -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) %> |