From b14aa23c8cf2cb35b863cbd41fc6c0d1286161aa 2008-06-22 14:40:45 From: Jean-Philippe Lang Date: 2008-06-22 14:40:45 Subject: [PATCH] Revision view: do not display links for deleted files. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1574 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/app/views/repositories/revision.rhtml b/app/views/repositories/revision.rhtml index 8d994ef..527ae6d 100644 --- a/app/views/repositories/revision.rhtml +++ b/app/views/repositories/revision.rhtml @@ -47,7 +47,11 @@ <% @changes.each do |change| %>
-<%= 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? %> <% if change.action == "M" %>