summaryrefslogtreecommitdiff
path: root/includes/view
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-12-20 23:05:46 +0100
committermsquare <msquare@notrademark.de>2017-12-20 23:05:46 +0100
commit2c04e35bed483dfe31eda465345602a117054f44 (patch)
treed9b0fd897ae91b4e3a11010e79715b28c0d8ee8c /includes/view
parent7a3bdda483be2a32cc67bcf97b246edcb48c124e (diff)
introduce new shift signup state for not arrived angels
Diffstat (limited to 'includes/view')
-rw-r--r--includes/view/ShiftCalendarShiftRenderer.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/includes/view/ShiftCalendarShiftRenderer.php b/includes/view/ShiftCalendarShiftRenderer.php
index 74b36bc3..61e3ecec 100644
--- a/includes/view/ShiftCalendarShiftRenderer.php
+++ b/includes/view/ShiftCalendarShiftRenderer.php
@@ -67,6 +67,7 @@ class ShiftCalendarShiftRenderer
case ShiftSignupState::SIGNED_UP:
return 'primary';
+ case ShiftSignupState::NOT_ARRIVED:
case ShiftSignupState::SHIFT_ENDED:
return 'default';
@@ -180,11 +181,16 @@ class ShiftCalendarShiftRenderer
_('Sign up'), 'btn-xs btn-primary'
);
break;
-
+
case ShiftSignupState::SHIFT_ENDED:
// No link and add a text hint, when the shift ended
$entry_list[] = $inner_text . ' (' . _('ended') . ')';
break;
+
+ case ShiftSignupState::NOT_ARRIVED:
+ // No link and add a text hint, when the shift ended
+ $entry_list[] = $inner_text . ' (' . _('not arrived') . ')';
+ break;
case ShiftSignupState::ANGELTYPE:
if ($angeltype['restricted'] == 1) {