From c70e268a2e25855391a53240a9ca783c3a7a94dd Mon Sep 17 00:00:00 2001 From: msquare Date: Wed, 13 Dec 2017 17:50:52 +0100 Subject: add fullscreen button to dashboard and update translation to german --- includes/view/PublicDashboard_view.php | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'includes/view') diff --git a/includes/view/PublicDashboard_view.php b/includes/view/PublicDashboard_view.php index fc639ce9..c49f3715 100644 --- a/includes/view/PublicDashboard_view.php +++ b/includes/view/PublicDashboard_view.php @@ -11,7 +11,7 @@ function public_dashboard_view($stats, $free_shifts) foreach ($free_shifts as $shift) { $shift_panels[] = public_dashborad_shift_render($shift); } - $needed_angels = div('container-fluid first', [ + $needed_angels = div('first', [ div('col-md-12', [ heading(_('Needed angels:'), 1) ]), @@ -20,7 +20,7 @@ function public_dashboard_view($stats, $free_shifts) } return page([ div('public-dashboard', [ - div('first container-fluid', [ + div('first', [ 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'), @@ -33,10 +33,17 @@ function public_dashboard_view($stats, $free_shifts) }) ' ], 'statistics'), - $needed_angels + $needed_angels, + div('col-md-12', [ + buttons([ + button_js(' + $(\'#navbar-collapse-1,#footer,#fullscreen-button\').remove(); + $(\'.navbar-brand\').append(\' ' . _('Public Dashboard') . '\'); + ', glyph('fullscreen') . _('Fullscreen')) + ]) + ], 'fullscreen-button') ], 'public-dashboard') - ] - ); + ]); } /** -- cgit v1.2.3-54-g00ecf