diff --git a/app/controllers/quantities_controller.rb b/app/controllers/quantities_controller.rb index ea0bed8..994abf4 100644 --- a/app/controllers/quantities_controller.rb +++ b/app/controllers/quantities_controller.rb @@ -91,5 +91,6 @@ class QuantitiesController < ApplicationController def prepare_quantities @quantities = @project.quantities.filter(@project, session[:q_filters]) + .includes(:column_views) end end diff --git a/app/views/quantities/_index.html.erb b/app/views/quantities/_index.html.erb index bf1995b..9a0c0cd 100644 --- a/app/views/quantities/_index.html.erb +++ b/app/views/quantities/_index.html.erb @@ -21,7 +21,11 @@ quantity_class += " project idnt idnt-#{level+1}" %> - <%= q.name %> + +
+ <%= q.name %> +
+ <% [:up, :down, :left, :right].each do |direction| %> <%=