summaryrefslogtreecommitdiff
path: root/includes/view
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2017-08-31 12:25:06 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2017-08-31 12:32:08 +0200
commit0a20883aa862779b48fd2a297456c2db04cffb95 (patch)
tree310600aaa23404f0cd7d3e198bacdbc93645da32 /includes/view
parent2bd127c011846aad69731d1d63535a3d4f100af0 (diff)
Reimplementation of 2840bb619 (signup requires arrival), closes #330
Diffstat (limited to 'includes/view')
-rw-r--r--includes/view/Rooms_view.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/view/Rooms_view.php b/includes/view/Rooms_view.php
index 3c0440a4..adb58a9a 100644
--- a/includes/view/Rooms_view.php
+++ b/includes/view/Rooms_view.php
@@ -11,8 +11,16 @@ use Engelsystem\ShiftsFilterRenderer;
*/
function Room_view($room, ShiftsFilterRenderer $shiftsFilterRenderer, ShiftCalendarRenderer $shiftCalendarRenderer)
{
+ global $user;
+
+ $assignNotice = '';
+ if (config('signup_requires_arrival') && !$user['Gekommen']) {
+ $assignNotice = info(render_user_arrived_hint(), true);
+ }
+
return page_with_title(glyph('map-marker') . $room['Name'], [
$shiftsFilterRenderer->render($room),
+ $assignNotice,
$shiftCalendarRenderer->render()
]);
}