From b14aa23c8cf2cb35b863cbd41fc6c0d1286161aa Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 22 Jun 2008 14:40:45 +0000 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 --- app/views/repositories/revision.rhtml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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| %>
-<%= 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" %>