<% if @project.active? %> <% if can_clone_experiment?(experiment) %> <%= link_to clone_modal_experiment_url(experiment), remote: true, type: 'button', class: 'clone-experiment pull-right' do %>   <%= t('experiments.clone.label_title') %> <% end %> <% end %> <% end %>
<%= link_to experiment.name, canvas_experiment_path(experiment) %>
<% if experiment.archived? %>
<%= l(experiment.archived_on, format: :full_date) %>
<% end %>
<%= l(experiment.created_at, format: :full_date) %> - <%= l(experiment.updated_at, format: :full_date) %>
<% if experiment.description? %>
<%= custom_auto_link(experiment.description, team: current_team) %>
<% else %> <% if can_manage_experiment?(experiment) %> <%= link_to t('experiments.edit.add-description'), edit_experiment_url(experiment), remote: true, data: { id: experiment.id }, class: 'experiment-no-description' %> <% else %>

<%= t('experiments.edit.no-description') %>

<% end %> <% end %>
<% if experiment.my_modules.active.exists? %> <%= link_to canvas_experiment_path(experiment), class: 'no-workflowimg' do %> <% if experiment.workflowimg.attached? %>
<%= render partial: 'projects/show/workflow_img.html.erb', locals: { experiment: experiment } %>
<% else %>
<% end %> <% end %> <% else %> <% if can_manage_experiment?(experiment) %> <%= link_to( t('experiments.edit.add_task'), canvas_experiment_path(experiment, editMode: true), class: 'no-tasks') %> <% else %>

<%= t('experiments.edit.no_workflowimg') %>

<% end %> <% end %>