diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-22 14:40:45 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-22 14:40:45 +0000 |
commit | b14aa23c8cf2cb35b863cbd41fc6c0d1286161aa (patch) | |
tree | 26ec23c15a8d03ee6279b189f60dcff441093d66 | |
parent | c107fee54e453cf35081ee5046b878ac719333b0 (diff) | |
download | redmine-b14aa23c8cf2cb35b863cbd41fc6c0d1286161aa.tar.gz redmine-b14aa23c8cf2cb35b863cbd41fc6c0d1286161aa.zip |
Revision view: do not display links for deleted files.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1574 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/views/repositories/revision.rhtml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/views/repositories/revision.rhtml b/app/views/repositories/revision.rhtml index 8d994ef7f..527ae6dcd 100644 --- a/app/views/repositories/revision.rhtml +++ b/app/views/repositories/revision.rhtml @@ -47,7 +47,11 @@ <% @changes.each do |change| %> <tr class="<%= cycle 'odd', 'even' %>"> <td><div class="square action_<%= change.action %>"></div> -<%= link_to change.path, :action => 'entry', :id => @project, :path => change.relative_path, :rev => @changeset.revision %> +<% if change.action == "D" -%> + <%= change.path -%> +<% else -%> + <%= link_to change.path, :action => 'entry', :id => @project, :path => change.relative_path, :rev => @changeset.revision -%> +<% end -%> <%= "(#{change.revision})" unless change.revision.blank? %></td> <td align="right"> <% if change.action == "M" %> |