Prevent showing empty files for experiments without Tasks

SCI-5481
This commit is contained in:
Urban Rotnik 2021-02-18 12:00:51 +01:00
parent 6ea39c9363
commit 3bca05fc94

View file

@ -2,7 +2,7 @@
<div class="archived-icon-plceholder">
<i class="fas fa-archive"></i>
</div>
<% else %>
<% elsif experiment.my_modules.active.any? %>
<% if experiment.workflowimg.attached? %>
<div class="workflowimg-container" data-workflowimg-present="true">
<%= render partial: 'projects/show/workflow_img.html.erb', locals: { experiment: experiment } %>