mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-28 17:54:16 +08:00
fixes 'new experiment' button bug on smaller screens
This commit is contained in:
parent
ca0ba1403d
commit
9fd68c7bd5
1 changed files with 18 additions and 11 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue