diff options
author | msquare <msquare@notrademark.de> | 2017-12-26 10:51:23 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2017-12-26 10:51:23 +0100 |
commit | d4ccc14d6cf55064736d821ca84b7ab6cb1ce928 (patch) | |
tree | 4141daf2c1ec4b1eb208b715448b4836ef08d7ae /includes/view/PublicDashboard_view.php | |
parent | c819bf02ea060f302e7dfbea60809da572c5248a (diff) |
fix dashboard rows
Diffstat (limited to 'includes/view/PublicDashboard_view.php')
-rw-r--r-- | includes/view/PublicDashboard_view.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/includes/view/PublicDashboard_view.php b/includes/view/PublicDashboard_view.php index 894440e2..eaf032ae 100644 --- a/includes/view/PublicDashboard_view.php +++ b/includes/view/PublicDashboard_view.php @@ -14,9 +14,9 @@ function public_dashboard_view($stats, $free_shifts) $shift_panels = [ '<div class="row">' ]; - foreach ($free_shifts as $shift) { + foreach ($free_shifts as $i => $shift) { $shift_panels[] = public_dashboard_shift_render($shift); - if(count($shift_panels) % 4 == 0) { + if($i % 4 == 0) { $shift_panels[] = '</div><div class="row">'; } } @@ -25,7 +25,9 @@ function public_dashboard_view($stats, $free_shifts) div('col-md-12', [ heading(_('Needed angels:'), 1) ]), - join($shift_panels) + div('container-fluid', [ + join($shift_panels) + ]) ]); } |