diff options
-rw-r--r-- | includes/controller/public_dashboard_controller.php | 8 | ||||
-rw-r--r-- | includes/pages/user_shifts.php | 1 | ||||
-rw-r--r-- | templates/user_shifts.html | 5 |
3 files changed, 14 insertions, 0 deletions
diff --git a/includes/controller/public_dashboard_controller.php b/includes/controller/public_dashboard_controller.php index bf909bed..311db22d 100644 --- a/includes/controller/public_dashboard_controller.php +++ b/includes/controller/public_dashboard_controller.php @@ -19,4 +19,12 @@ function public_dashboard_controller() public_dashboard_view($stats, $free_shifts) ]; } + +/** + * Returns url to public dashboard + */ +function public_dashboard_link() +{ + return page_link_to('public-dashboard'); +} ?>
\ No newline at end of file diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php index 2871ceb5..355a7bb6 100644 --- a/includes/pages/user_shifts.php +++ b/includes/pages/user_shifts.php @@ -250,6 +250,7 @@ function view_user_shifts() 'set_last_4h' => _('last 4h'), 'set_next_4h' => _('next 4h'), 'set_next_8h' => _('next 8h'), + 'buttons' => button(public_dashboard_link(), glyph('dashboard') . _('Public Dashboard')) ]) ]) ]); diff --git a/templates/user_shifts.html b/templates/user_shifts.html index 446c4b82..b1bbba56 100644 --- a/templates/user_shifts.html +++ b/templates/user_shifts.html @@ -54,6 +54,11 @@ <a href="javascript:setHours(8)" class="btn btn-default ">%set_next_8h%</a> </div> </div> + <div class="form-group" style="margin-top: .5em"> + <div class="btn-group"> + %buttons% + </div> + </div> </div> <div class="col-md-2">%room_select%</div> <div class="col-md-2">%type_select%</div> |