From 2171c69822c1fcdb9dffd7072fc8d955947427d8 Mon Sep 17 00:00:00 2001 From: cryptogopher Date: Fri, 27 Dec 2019 01:36:30 +0100 Subject: [PATCH] Quantity index stares quantities included in columnview --- app/controllers/quantities_controller.rb | 1 + app/views/quantities/_index.html.erb | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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| %> <%=