summaryrefslogtreecommitdiff
path: root/includes/view/Rooms_view.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/view/Rooms_view.php')
-rw-r--r--includes/view/Rooms_view.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/includes/view/Rooms_view.php b/includes/view/Rooms_view.php
new file mode 100644
index 00000000..bb41a4d3
--- /dev/null
+++ b/includes/view/Rooms_view.php
@@ -0,0 +1,10 @@
+<?php
+
+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 $room['Name'];
+}
+
+?> \ No newline at end of file