From 0558d49e2654e2f50f49813f42f88110fac39943 Mon Sep 17 00:00:00 2001 From: Mojca Lorber Date: Wed, 24 Aug 2016 13:50:25 +0200 Subject: [PATCH] buttons update on experiment overview --- app/views/experiments/canvas.html.erb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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) %>