mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-04 14:44:26 +08:00
buttons update on experiment overview
This commit is contained in:
parent
00da7efb44
commit
0558d49e26
1 changed files with 8 additions and 8 deletions
|
@ -3,6 +3,14 @@
|
|||
<%= render partial: "shared/secondary_navigation" %>
|
||||
|
||||
<div id="diagram-buttons" data-intro="<%=t ('tutorial.canvas_click_edit_workflow_html') %>" data-step="5" data-position="left">
|
||||
<% 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 %>
|
||||
<!-- pexperiment actions -->
|
||||
<% if can_edit_experiment(@experiment) || can_archive_experiment(@experiment) %>
|
||||
<span class="dropdown">
|
||||
|
|
Loading…
Reference in a new issue