diff --git a/app/views/dmsf/show.html.erb b/app/views/dmsf/show.html.erb
index d45edc71..993fd5a2 100644
--- a/app/views/dmsf/show.html.erb
+++ b/app/views/dmsf/show.html.erb
@@ -68,8 +68,13 @@
:title => l(:link_create_folder),
:class => 'icon icon-add') unless @locked_for_user %>
<% end %>
- <%= link_to_if(@trash_enabled, l(:link_trash_bin), trash_dmsf_path(@project),
- :title => l(:link_trash_bin), :class => 'icon icon-del') if @trash_visible %>
+ <% if @trash_enabled %>
+ <%= link_to l(:link_trash_bin), trash_dmsf_path(@project), title: l(:link_trash_bin), class: 'icon icon-del' %>
+ <% else %>
+
+ <%= l(:link_trash_bin) %>
+
+ <% end %>
<%= render(:partial => 'path',