diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-01-31 11:15:47 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-01-31 11:15:47 +0000 |
commit | 369425dde6f95ffc21ef470fbfaf9ca75d2c3bde (patch) | |
tree | 0fc0885bb0e87b94022f96dfb482c29c532abbb4 | |
parent | 453c4ae5801376ef6b84f713ab625498fe8767d3 (diff) | |
download | redmine-369425dde6f95ffc21ef470fbfaf9ca75d2c3bde.tar.gz redmine-369425dde6f95ffc21ef470fbfaf9ca75d2c3bde.zip |
Adds links to changeset diff on the issue history (#4266).
git-svn-id: http://svn.redmine.org/redmine/trunk@15142 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/views/issues/_changesets.html.erb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/app/views/issues/_changesets.html.erb b/app/views/issues/_changesets.html.erb index beab65536..f4b47c617 100644 --- a/app/views/issues/_changesets.html.erb +++ b/app/views/issues/_changesets.html.erb @@ -1,7 +1,17 @@ <% changesets.each do |changeset| %> <div class="changeset <%= cycle('odd', 'even') %>"> <p><%= link_to_revision(changeset, changeset.repository, - :text => "#{l(:label_revision)} #{changeset.format_identifier}") %><br /> + :text => "#{l(:label_revision)} #{changeset.format_identifier}") %> + <% if changeset.filechanges.any? && User.current.allowed_to?(:browse_repository, changeset.project) %> + (<%= link_to(l(:label_diff), + :controller => 'repositories', + :action => 'diff', + :id => changeset.project, + :repository_id => changeset.repository.identifier_param, + :path => "", + :rev => changeset.identifier) %>) + <% end %> + <br /> <span class="author"><%= authoring(changeset.committed_on, changeset.author) %></span></p> <div class="wiki"> <%= textilizable(changeset, :comments) %> |