fixes 'new experiment' button bug on smaller screens

This commit is contained in:
zmagod 2016-08-17 14:27:59 +02:00
parent ca0ba1403d
commit 9fd68c7bd5

View file

@ -3,17 +3,24 @@
<%= render partial: "shared/secondary_navigation" %>
<div class="row">
<div class="col-md-12">
<h2 class="pull-left"><%= t'projects.show.page_title' %></h2>
<% if can_create_experiment(@project) %>
<%= link_to t('experiments.new.create'),
new_project_experiment_url(@project),
remote: true,
type: "button",
id: 'new-experiment',
class: "btn btn-primary center-btn" %>
<% end %>
<div class="col-sm-12">
<% if can_create_experiment(@project) %>
<div class="row">
<div class="col-sm-4 col-sm-offset-4">
<%= link_to t('experiments.new.create'),
new_project_experiment_url(@project),
remote: true,
type: "button",
id: 'new-experiment',
class: "btn btn-primary center-btn" %>
</div>
</div>
<% end %>
<div class="row">
<div class="col-sm-6">
<h2><%= t'projects.show.page_title' %></h2>
</div>
</div>
</div>
</div>
<div class="row">