1
0

Moved filters ouside of ingredient table, so they are always visible

This commit is contained in:
cryptogopher 2019-11-10 23:26:32 +01:00
parent 13703dc8ed
commit 7032bd4fb0
2 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
<% if @ingredients.any? { |i| i.persisted? } %>
<%= render :partial => 'ingredients/filters',
:locals => {:url => filter_project_ingredients_path(@project)} %>
<%= render :partial => 'ingredients/filters',
:locals => {:url => filter_project_ingredients_path(@project)} %>
<% if @ingredients.any? { |i| i.persisted? } %>
<table class="list">
<thead>
<tr>

View File

@ -1,7 +1,7 @@
<% if @nutrients.any? %>
<%= render :partial => 'ingredients/filters',
:locals => {:url => filter_nutrients_project_ingredients_path(@project)} %>
<%= render :partial => 'ingredients/filters',
:locals => {:url => filter_nutrients_project_ingredients_path(@project)} %>
<% if @nutrients.any? %>
<%= render :partial => 'ingredients/options' %>
<table class="nutrients list odd-even">