Prevent archiving of experiments with at least one locked task

This commit is contained in:
Matej Zrimšek 2018-12-23 21:17:51 +01:00
parent 1c8407e4f4
commit c84457e1ed

View file

@ -31,7 +31,7 @@
tooltipcontent: I18n.t('tooltips.text.experiment.move')
} %></li>
<% end %>
<% if can_manage_experiment?(experiment) %>
<% if can_archive_experiment?(experiment) %>
<li><%= link_to t('experiments.archive.label_title'),
archive_experiment_url(experiment),
type: 'button',