You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
484 B
PHP
18 lines
484 B
PHP
<?php
|
|
use Engelsystem\ShiftsFilterRenderer;
|
|
|
|
function Room_view($room, ShiftsFilterRenderer $shiftsFilterRenderer) {
|
|
return page_with_title(glyph('map-marker') . $room['Name'], [
|
|
$shiftsFilterRenderer->render()
|
|
]);
|
|
}
|
|
|
|
function Room_name_render($room) {
|
|
global $privileges;
|
|
if (in_array('admin_rooms', $privileges)) {
|
|
return '<a href="' . room_link($room) . '">' . glyph('map-marker') . $room['Name'] . '</a>';
|
|
}
|
|
return glyph('map-marker') . $room['Name'];
|
|
}
|
|
|
|
?>
|