Trash icon if the trash bin is empty

This commit is contained in:
Karel Pičman 2019-01-30 13:29:22 +01:00
parent 12ff703584
commit 0d34dfc2ce

View File

@ -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 %>
<span class="icon icon-del">
<%= l(:link_trash_bin) %>
</span>
<% end %>
</div>
<%= render(:partial => 'path',