From 6aaf8d6f533863fd772be6fcda9d1ea64100b70f Mon Sep 17 00:00:00 2001 From: msquare Date: Tue, 26 Dec 2017 10:47:39 +0100 Subject: fix #389: Public Dashboard Stats --- includes/view/PublicDashboard_view.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'includes/view') diff --git a/includes/view/PublicDashboard_view.php b/includes/view/PublicDashboard_view.php index b4064294..894440e2 100644 --- a/includes/view/PublicDashboard_view.php +++ b/includes/view/PublicDashboard_view.php @@ -11,10 +11,16 @@ function public_dashboard_view($stats, $free_shifts) { $needed_angels = ''; if (count($free_shifts) > 0) { - $shift_panels = []; + $shift_panels = [ + '
' + ]; foreach ($free_shifts as $shift) { $shift_panels[] = public_dashboard_shift_render($shift); + if(count($shift_panels) % 4 == 0) { + $shift_panels[] = '
'; + } } + $shift_panels[] = '
'; $needed_angels = div('first', [ div('col-md-12', [ heading(_('Needed angels:'), 1) -- cgit v1.2.3-54-g00ecf