From e0de2c2c656e708f13bd69a0c98bacb7fdb4104c Mon Sep 17 00:00:00 2001 From: msquare Date: Sun, 25 Nov 2018 15:40:53 +0100 Subject: more work on 35c3 theme --- includes/view/ShiftCalendarShiftRenderer.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'includes') diff --git a/includes/view/ShiftCalendarShiftRenderer.php b/includes/view/ShiftCalendarShiftRenderer.php index f1847698..6a01949e 100644 --- a/includes/view/ShiftCalendarShiftRenderer.php +++ b/includes/view/ShiftCalendarShiftRenderer.php @@ -44,7 +44,7 @@ class ShiftCalendarShiftRenderer . ($blocks * ShiftCalendarRenderer::BLOCK_HEIGHT - ShiftCalendarRenderer::MARGIN) . 'px"', [ - $this->renderShiftHead($shift), + $this->renderShiftHead($shift, $class), div('panel-body', [ $info_text, Room_name_render([ @@ -248,9 +248,10 @@ class ShiftCalendarShiftRenderer * Renders the shift header * * @param array $shift The shift + * @param string $class The shift state class * @return string */ - private function renderShiftHead($shift) + private function renderShiftHead($shift, $class) { global $privileges; @@ -260,12 +261,12 @@ class ShiftCalendarShiftRenderer button( page_link_to('user_shifts', ['edit_shift' => $shift['SID']]), glyph('edit'), - 'btn-xs' + "btn-$class btn-xs" ), button( page_link_to('user_shifts', ['delete_shift' => $shift['SID']]), glyph('trash'), - 'btn-xs' + "btn-$class btn-xs" ) ]) . ''; } -- cgit v1.2.3-54-g00ecf