mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
Fixes experiment button not being clicable in project overview page. [SCI-849]
This commit is contained in:
parent
09ef3b3ad5
commit
4b0f47675a
2 changed files with 17 additions and 17 deletions
|
@ -21,7 +21,7 @@
|
|||
<span class="hidden-xs"><%=t 'experiments.canvas.canvas_edit' %></span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<!-- pexperiment actions -->
|
||||
<!-- experiment actions -->
|
||||
<% if can_edit_experiment(@experiment) || can_archive_experiment(@experiment) %>
|
||||
<span class="dropdown">
|
||||
<button class="btn btn-default dropdown-toggle" type="button" id="exActionsMenu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||||
|
|
|
@ -8,23 +8,8 @@
|
|||
data-project-id="<%= @project.id %>">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<% if can_create_experiment(@project) %>
|
||||
<%= link_to new_project_experiment_url(@project),
|
||||
remote: true,
|
||||
type: "button",
|
||||
id: 'new-experiment',
|
||||
class: 'btn btn-primary pull-right',
|
||||
data: {
|
||||
intro: t('tutorial.create_experiment_html'),
|
||||
step: '4',
|
||||
position: 'left'
|
||||
} do %>
|
||||
<span class="glyphicon glyphicon-plus"></span>
|
||||
<span class="hidden-xs"><%=t 'experiments.new.create' %></span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
<!-- experiment sort -->
|
||||
<div class="dropdown">
|
||||
<div class="dropdown pull-left">
|
||||
<button class="btn btn-default dropdown-toggle" type="button" id="sortMenu" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
|
||||
<span class="hidden-xs"><%= t'projects.index.sort' %></span>
|
||||
<span class="visible-xs-inline"><i class="glyphicon glyphicon-sort"></i></span>
|
||||
|
@ -40,6 +25,21 @@
|
|||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
<% if can_create_experiment(@project) %>
|
||||
<%= link_to new_project_experiment_url(@project),
|
||||
remote: true,
|
||||
type: "button",
|
||||
id: 'new-experiment',
|
||||
class: 'btn btn-primary pull-right',
|
||||
data: {
|
||||
intro: t('tutorial.create_experiment_html'),
|
||||
step: '4',
|
||||
position: 'left'
|
||||
} do %>
|
||||
<span class="glyphicon glyphicon-plus"></span>
|
||||
<span class="hidden-xs"><%=t 'experiments.new.create' %></span>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
|
|
Loading…
Reference in a new issue