From 0d34dfc2cefdfe368ff9648a71e91cc9628d94b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Pi=C4=8Dman?= Date: Wed, 30 Jan 2019 13:29:22 +0100 Subject: [PATCH] Trash icon if the trash bin is empty --- app/views/dmsf/show.html.erb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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',