summaryrefslogtreecommitdiff
path: root/includes/view/PublicDashboard_view.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-12-13 12:22:26 +0100
committermsquare <msquare@notrademark.de>2017-12-13 12:22:26 +0100
commitadc62470c51384094a34608cbd594cc52af899b6 (patch)
treee1bcd83d86e61e5c879cfc18c5d03b625616bebd /includes/view/PublicDashboard_view.php
parentaf8454598c204d5b32c6a33467086df5fd2dc3dc (diff)
improve public dashboard
Diffstat (limited to 'includes/view/PublicDashboard_view.php')
-rw-r--r--includes/view/PublicDashboard_view.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/includes/view/PublicDashboard_view.php b/includes/view/PublicDashboard_view.php
index 1325d31a..27ae97e3 100644
--- a/includes/view/PublicDashboard_view.php
+++ b/includes/view/PublicDashboard_view.php
@@ -56,15 +56,20 @@ function public_dashborad_shift_render($shift)
foreach ($shift['NeedAngels'] as $needed_angels) {
$need = $needed_angels['count'] - $needed_angels['taken'];
if ($need > 0) {
- $panel_body .= '<br>' . glyph('user') . $need . ' &times; ' . AngelType($needed_angels['TID'])['name'];
+ $panel_body .=
+ '<br>' . glyph('user') .
+ '<span class="text-' . $style . '">' .
+ $need . ' &times; ' . AngelType($needed_angels['TID'])['name'] .
+ '</span>';
}
}
- $panel_body = '<a href="' . shift_link($shift) . '">' . $panel_body . '</a>';
+ // $panel_body = '<a href="' . shift_link($shift) . '">' . $panel_body . '</a>';
return div('col-xs-3', [
- div('panel panel-' . $style, [
+ div('dashboard-panel panel panel-' . $style, [
div('panel-body', [
+ '<a class="panel-link" href="' . shift_link($shift) . '"></a>',
heading($panel_body, 4)
])
])