2016-08-12 16:18:35 +08:00
|
|
|
<ul class="dropdown-menu dropdown-experiment-actions"
|
|
|
|
aria-labelledby="exActionsMenu-<%= experiment.id %>"
|
|
|
|
data-id="<%= experiment.id %>">
|
|
|
|
|
2018-01-29 18:36:36 +08:00
|
|
|
<% if can_manage_experiment?(experiment) %>
|
2016-08-12 16:18:35 +08:00
|
|
|
<li><%= link_to t('experiments.edit.label_title'),
|
|
|
|
edit_project_experiment_url(project, experiment),
|
|
|
|
remote: true,
|
|
|
|
type: 'button',
|
|
|
|
data: { id: experiment.id },
|
|
|
|
class: 'edit-experiment' %></li>
|
|
|
|
<% end %>
|
2018-02-07 18:49:15 +08:00
|
|
|
<% if can_clone_experiment?(experiment) %>
|
2016-08-12 16:18:35 +08:00
|
|
|
<li><%= link_to t('experiments.clone.label_title'),
|
|
|
|
clone_modal_experiment_url(experiment),
|
|
|
|
remote: true,
|
|
|
|
type: 'button',
|
|
|
|
class: 'clone-experiment' %></li>
|
2018-02-07 18:49:15 +08:00
|
|
|
<% end %>
|
|
|
|
<% if can_move_experiment?(experiment) %>
|
2016-08-12 17:26:18 +08:00
|
|
|
<li><%= link_to t('experiments.move.label_title'),
|
|
|
|
move_modal_experiment_url(experiment),
|
|
|
|
remote: true,
|
|
|
|
type: 'button',
|
|
|
|
class: 'move-experiment' %></li>
|
|
|
|
<% end %>
|
2018-01-29 18:36:36 +08:00
|
|
|
<% if can_manage_experiment?(experiment) %>
|
2016-08-12 16:18:35 +08:00
|
|
|
<li><%= link_to t('experiments.archive.label_title'),
|
|
|
|
archive_experiment_url(experiment),
|
|
|
|
type: 'button',
|
|
|
|
data: { confirm: t('experiments.canvas.archive_confirm') } %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|