1
0

Moved sidebar rendering to layout

This commit is contained in:
cryptogopher 2019-12-27 23:54:27 +01:00
parent cc62ef1002
commit 61bd34fdc5
9 changed files with 4 additions and 32 deletions

View File

@ -1,5 +1 @@
<h2><%= t ".heading" %></h2>
<% content_for :sidebar do %>
<%= render partial: 'body_trackers/sidebar' %>
<% end %>

View File

@ -1,7 +1,3 @@
<% content_for :sidebar do %>
<%= render partial: 'body_trackers/sidebar' %>
<% end %>
<div class="contextual">
<%= link_to t(".heading_nutrient_view"), nutrients_project_ingredients_path(@project),
class: 'icon icon-stats' %>

View File

@ -1,7 +1,3 @@
<% content_for :sidebar do %>
<%= render partial: 'body_trackers/sidebar' %>
<% end %>
<div class="contextual">
<%= link_to t(".heading_ingredient_list"), project_ingredients_path(@project),
class: 'icon icon-list' %>

View File

@ -1,3 +1,7 @@
<% content_for :header_tags do %>
<%= stylesheet_link_tag 'body_tracking', plugin: 'body_tracking' %>
<% end %>
<% content_for :sidebar do %>
<%= render partial: 'body_trackers/sidebar' %>
<% end %>

View File

@ -1,7 +1,3 @@
<% content_for :sidebar do %>
<%= render partial: 'body_trackers/sidebar' %>
<% end %>
<div class="contextual">
<%= render partial: 'measurements/contextual' %>
</div>

View File

@ -1,7 +1,3 @@
<% content_for :sidebar do %>
<%= render partial: 'body_trackers/sidebar' %>
<% end %>
<div class="contextual">
<%= render partial: 'measurements/contextual' %>
</div>

View File

@ -1,7 +1,3 @@
<% content_for :sidebar do %>
<%= render partial: 'body_trackers/sidebar' %>
<% end %>
<div class="contextual">
<% if User.current.allowed_to?(:manage_common, @project) %>
<%= link_to t(".link_new_quantity"), '#', class: 'icon icon-add',

View File

@ -1,7 +1,3 @@
<% content_for :sidebar do %>
<%= render partial: 'body_trackers/sidebar' %>
<% end %>
<div class="contextual">
<% if User.current.allowed_to?(:manage_common, @project) %>
<%= link_to t(".link_new_source"), '#', class: 'icon icon-add',

View File

@ -1,7 +1,3 @@
<% content_for :sidebar do %>
<%= render partial: 'body_trackers/sidebar' %>
<% end %>
<div class="contextual">
<% if User.current.allowed_to?(:manage_common, @project) %>
<%= link_to t(".link_new_unit"), '#', class: 'icon icon-add',