app/views/application/index.html.haml in five-two-nw-olivander-0.1.2.7 vs app/views/application/index.html.haml in five-two-nw-olivander-0.1.2.8
- old
+ new
@@ -5,10 +5,11 @@
= render_datatable(@datatable, charts: false)
- content_for :datatable_charts do
- keys = @datatable._charts.keys
- ks = keys.size
- if ks.positive?
+ %br
.row
- @datatable._charts.keys.each do |k|
%div{ class: "#{col_class_num('xl', ks, 3)} #{col_class_num('lg', ks, 2)} #{col_class_num('md', ks, 6)} #{col_class_num('sm', ks, 6)}"}
.card.card-secondary
.card-header
@@ -19,9 +20,10 @@
.card-body
= render_datatable_chart(@datatable, k)
- if @datatable
= content_for :datatable_charts
+
.row
.col-12
.card
.card-header
%h3.card-title= @page_title