From 15243f15fcccfd1f671050144faf2269863df8fc Mon Sep 17 00:00:00 2001 From: msquare Date: Tue, 15 Nov 2016 17:22:15 +0100 Subject: fix shift view --- includes/view/Shifts_view.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'includes/view/Shifts_view.php') diff --git a/includes/view/Shifts_view.php b/includes/view/Shifts_view.php index 8e52eb9d..c53bf972 100644 --- a/includes/view/Shifts_view.php +++ b/includes/view/Shifts_view.php @@ -1,4 +1,5 @@ %c', [ msg(), Shift_collides($shift, $user_shifts) ? info(_('This shift collides with one of your shifts.'), true) : '', - $signed_up ? info(_('You are signed up for this shift.'), true) : '', + $shift_signup_state->getState() == ShiftSignupState::SIGNED_UP ? info(_('You are signed up for this shift.'), true) : '', ($shift_admin || $admin_shifttypes || $admin_rooms) ? buttons([ $shift_admin ? button(shift_edit_link($shift), glyph('pencil') . _('edit')) : '', $shift_admin ? button(shift_delete_link($shift), glyph('trash') . _('delete')) : '', -- cgit v1.2.3-54-g00ecf