diff --git a/includes/view/PublicDashboard_view.php b/includes/view/PublicDashboard_view.php
index d1543229..fc639ce9 100644
--- a/includes/view/PublicDashboard_view.php
+++ b/includes/view/PublicDashboard_view.php
@@ -19,15 +19,24 @@ function public_dashboard_view($stats, $free_shifts)
]);
}
return page([
- div('first container-fluid', [
- stats(_('Angels needed in the next 3 hrs'), $stats['needed-3-hours']),
- stats(_('Angels needed for nightshifts'), $stats['needed-night']),
- stats(_('Angels currently working'), $stats['angels-working'], 'default'),
- stats(_('Hours to be worked'), $stats['hours-to-work'], 'default'),
- ''
- ], 'statistics'),
- $needed_angels
- ]);
+ div('public-dashboard', [
+ div('first container-fluid', [
+ stats(_('Angels needed in the next 3 hrs'), $stats['needed-3-hours']),
+ stats(_('Angels needed for nightshifts'), $stats['needed-night']),
+ stats(_('Angels currently working'), $stats['angels-working'], 'default'),
+ stats(_('Hours to be worked'), $stats['hours-to-work'], 'default'),
+ ''
+ ], 'statistics'),
+ $needed_angels
+ ], 'public-dashboard')
+ ]
+ );
}
/**
@@ -56,11 +65,7 @@ function public_dashborad_shift_render($shift)
foreach ($shift['NeedAngels'] as $needed_angels) {
$need = $needed_angels['count'] - $needed_angels['taken'];
if ($need > 0) {
- $panel_body .=
- '
' . glyph('user') .
- '' .
- $need . ' × ' . AngelType($needed_angels['TID'])['name'] .
- '';
+ $panel_body .= '
' . glyph('user') . '' . $need . ' × ' . AngelType($needed_angels['TID'])['name'] . '';
}
}