summaryrefslogtreecommitdiff
path: root/includes/view
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-12-26 10:47:39 +0100
committermsquare <msquare@notrademark.de>2017-12-26 10:47:39 +0100
commit6aaf8d6f533863fd772be6fcda9d1ea64100b70f (patch)
treeb2c9c64e2a8f4a13ea1514f349e1515785e847db /includes/view
parentde61c88d6de67d12d5de5b6dd0ab6b8c82e5a290 (diff)
fix #389: Public Dashboard Stats
Diffstat (limited to 'includes/view')
-rw-r--r--includes/view/PublicDashboard_view.php8
1 files changed, 7 insertions, 1 deletions
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 = [
+ '<div class="row">'
+ ];
foreach ($free_shifts as $shift) {
$shift_panels[] = public_dashboard_shift_render($shift);
+ if(count($shift_panels) % 4 == 0) {
+ $shift_panels[] = '</div><div class="row">';
+ }
}
+ $shift_panels[] = '</div>';
$needed_angels = div('first', [
div('col-md-12', [
heading(_('Needed angels:'), 1)