mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 15:36:22 +08:00
27 lines
1 KiB
Plaintext
27 lines
1 KiB
Plaintext
|
<ul class="dropdown-menu dropdown-experiment-actions"
|
||
|
aria-labelledby="exActionsMenu-<%= experiment.id %>"
|
||
|
data-id="<%= experiment.id %>">
|
||
|
|
||
|
<% if can_edit_experiment(experiment) %>
|
||
|
<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 %>
|
||
|
<% if can_clone_experiment(experiment) %>
|
||
|
<li><%= link_to t('experiments.clone.label_title'),
|
||
|
clone_modal_experiment_url(experiment),
|
||
|
remote: true,
|
||
|
type: 'button',
|
||
|
class: 'clone-experiment' %></li>
|
||
|
<% end %>
|
||
|
<% if can_archive_experiment(experiment) %>
|
||
|
<li><%= link_to t('experiments.archive.label_title'),
|
||
|
archive_experiment_url(experiment),
|
||
|
type: 'button',
|
||
|
data: { confirm: t('experiments.canvas.archive_confirm') } %></li>
|
||
|
<% end %>
|
||
|
</ul>
|