<% if can_manage_project?(experiment.project) %>
<% end %>
<%= render partial: 'projects/show/experiment_workflow_image_container', locals: { experiment: experiment } %>
<% if experiment.archived_branch? %>
<%= link_to experiment.name, module_archive_experiment_path(experiment), title: experiment.name, class: 'name-link' %>
<% else %>
<%= link_to experiment.name, canvas_experiment_path(experiment), title: experiment.name, class: 'name-link' %>
<% end %>
<%= experiment.code %>
<% if can_manage_experiment?(experiment) %>
<%= render partial: 'projects/show/experiment_actions_dropdown.html.erb', locals: { experiment: experiment, project: project } %>
<% end %>
<%= t('experiments.card.start_date') %>
<%= l(experiment.created_at, format: :full_date) %>
<%= t('experiments.card.modified_date') %>
<%= l(experiment.updated_at, format: :full_date) %>
<% if experiment.archived_branch? %>
<%= t('experiments.card.archived_date') %>
<%= l(experiment.archived_on || project.archived_on, format: :full_date) %>
<% end %>
<%= t('experiments.card.completed_task') %>
<%= t('experiments.card.completed_value', completed: experiment.completed_task_count, all: experiment.task_count) %>
<%= render partial: 'projects/show/experiment_workflow_image_container', locals: { experiment: experiment } %>
<%= t('experiments.card.completed_value', completed: experiment.completed_task_count, all: experiment.task_count) %>
<% percentage = experiment.task_count.positive? ? ((100/experiment.task_count) * experiment.completed_task_count) : 0 %>
<%= custom_auto_link(experiment.description, team: current_team) %>
<% if experiment.description.present? && experiment.description.length > Constants::EXPERIMENT_LONG_DESCRIPTION %>
<%= link_to t('experiments.card.more'),
experiment_path(experiment),
class: 'more-button experiment-action-link',
remote: true %>
<% end %>