summaryrefslogtreecommitdiff
path: root/includes/pages
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2014-12-22 18:22:54 +0100
committerPhilip Häusler <msquare@notrademark.de>2014-12-22 18:22:54 +0100
commit702047de5391b968137966077103cbb6d0a24dd8 (patch)
tree5e19c9a55ed47772f07f770a307147904002dfe2 /includes/pages
parentc12e5336fbe93c4596bd26c2bc4c9ee7390759fc (diff)
add more icons for better shift view
Diffstat (limited to 'includes/pages')
-rw-r--r--includes/pages/user_shifts.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php
index 70a674fb..9ec79438 100644
--- a/includes/pages/user_shifts.php
+++ b/includes/pages/user_shifts.php
@@ -676,11 +676,14 @@ function view_user_shifts() {
$info[] = date("Y-m-d", $shift['start']);
$info[] = date("H:i", $shift['start']) . ' - ' . date("H:i", $shift['end']);
if (count($_SESSION['user_shifts']['rooms']) > 1)
- $info[] = $shift['room_name'];
+ $info[] = Room_name_render([
+ 'Name' => $shift['room_name'],
+ 'RID' => $shift['RID']
+ ]);
$shift_row = array(
'info' => join('<br />', $info),
- 'entries' => $shift['name']
+ 'entries' => '<a href="' . shift_link($shift) . '">' . $shift['name'] . '</a>' . ($shift['title'] ? '<br />' . $shift['title'] : '')
);
if (in_array('admin_shifts', $privileges))