diff --git a/app/views/experiments/canvas.html.erb b/app/views/experiments/canvas.html.erb index fe217fe8a..bf6be7f51 100644 --- a/app/views/experiments/canvas.html.erb +++ b/app/views/experiments/canvas.html.erb @@ -3,6 +3,14 @@ <%= render partial: "shared/secondary_navigation" %>
+ <% if can_create_experiment(@project) && @experiment.active? %> + <%= link_to t('experiments.new.create'), + new_project_experiment_url(@project), + remote: true, + type: "button", + id: 'new-experiment', + class: "btn btn-primary" %> + <% end %> <% if can_edit_canvas(@experiment) %> <%=link_to t('experiments.canvas.canvas_edit'), canvas_edit_experiment_url(@experiment), @@ -12,14 +20,6 @@ class: "ajax btn btn-default", "data-action" => "edit" %> <% end %> - <% if can_create_experiment(@project) && @experiment.active? %> - <%= link_to t('experiments.new.create'), - new_project_experiment_url(@project), - remote: true, - type: "button", - id: 'new-experiment', - class: "btn btn-primary" %> - <% end %> <% if can_edit_experiment(@experiment) || can_archive_experiment(@experiment) %>