archived experiments cards updates [SCI-7202]

This commit is contained in:
Giga Chubinidze 2022-11-02 11:18:18 +04:00
parent d1aa127b7a
commit a8b1dbfe76
2 changed files with 2 additions and 6 deletions

View file

@ -51,7 +51,7 @@
<span class="card-value"><%= l(experiment.archived_on || project.archived_on, format: :full_date) %></span>
</div>
<% end %>
<div class="data-row" cards-render="true" data-view-mode="active">
<div class="data-row" cards-render="true">
<span class="card-label"><%= t('experiments.card.completed_task') %></span>
<span class="card-value"><%= t('experiments.card.completed_value', completed: experiment.completed_task_count, all: experiment.task_count) %></span>
</div>

View file

@ -1,8 +1,4 @@
<% if experiment.archived_branch? %>
<div class="archived-icon-plceholder">
<i class="fas fa-archive"></i>
</div>
<% elsif experiment.my_modules.any?(&:active?) %>
<% if experiment.my_modules.any?(&:active?) %>
<% if experiment.workflowimg.attached? %>
<div class="workflowimg-container" data-workflowimg-present="true">
<%= render partial: 'projects/show/workflow_img', locals: { experiment: experiment } %>