<% if can_view_experiment_actions experiment %> <% end %>

<%= link_to experiment.name, canvas_experiment_path(experiment) %>

<% if experiment.workflowimg? && experiment.active_modules.length > 0 %>
<% else %>
<% if can_edit_experiment(experiment) %>

<%= link_to( t('experiments.edit.add_task'), canvas_experiment_path(experiment, editMode: true)) %>

<% else %>

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

<% end %>
<% end %> <%= localize(experiment.created_at, format: t('time.formats.full_date')) %> - <%= localize(experiment.updated_at, format: t('time.formats.full_date')) %> <% if experiment.description? %>

<%= experiment.description %>

<% else %> <% if can_edit_experiment(experiment) %>

<%= link_to t('experiments.edit.add-description'), edit_project_experiment_url(@project, experiment), remote: true, data: { id: experiment.id }, class: 'no-description-experiment' %>

<% else %>

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

<% end %> <% end %>