summaryrefslogtreecommitdiff
path: root/includes/view/PublicDashboard_view.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-12-12 22:00:29 +0100
committermsquare <msquare@notrademark.de>2017-12-12 22:00:29 +0100
commit59b8e76d1203d0677b032b00fdefbdec82d78f1f (patch)
treecd240011f2ff8d77bb6a346006d6582c002a9022 /includes/view/PublicDashboard_view.php
parentff94df53d69234ae2625462a76926e131ade05b7 (diff)
improve public dashboard
Diffstat (limited to 'includes/view/PublicDashboard_view.php')
-rw-r--r--includes/view/PublicDashboard_view.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/includes/view/PublicDashboard_view.php b/includes/view/PublicDashboard_view.php
index 7b15c7dd..f1791e53 100644
--- a/includes/view/PublicDashboard_view.php
+++ b/includes/view/PublicDashboard_view.php
@@ -38,6 +38,7 @@ function public_dashborad_shift_render($shift)
}
$panel_body = glyph('time') . date('H:i', $shift['start']) . ' - ' . date('H:i', $shift['end']);
+ $panel_body .= ' (' . round(($shift['end'] - $shift['start']) / 3600) . ')';
$panel_body .= '<br>' . glyph('tasks') . ShiftType($shift['shifttype_id'])['name'];
if (! empty($shift['title'])) {
@@ -55,9 +56,11 @@ function public_dashborad_shift_render($shift)
$panel_body = '<a href="' . shift_link($shift) . '">' . $panel_body . '</a>';
- return div('panel panel-' . $style . ' col-xs-3', [
- div('panel-body', [
- heading($panel_body, 4)
+ return div('col-xs-3', [
+ div('panel panel-' . $style, [
+ div('panel-body', [
+ heading($panel_body, 4)
+ ])
])
]);
}