Fixes experiment button not being clicable in project overview page. [SCI-849]

This commit is contained in:
Matej Zrimšek 2017-01-05 14:41:48 +01:00
parent 09ef3b3ad5
commit 4b0f47675a
2 changed files with 17 additions and 17 deletions

View file

@ -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">

View file

@ -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">