diff options
author | msquare <msquare@notrademark.de> | 2017-12-13 12:53:07 +0100 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2017-12-13 12:53:07 +0100 |
commit | 5278be1f0fb7dae6c4ad04935b93d97143a91bad (patch) | |
tree | 91390f568c9fce4a151d41d278472fa2c29919ee /includes | |
parent | 2fdf520dafdb62421a91ad2616bdad75502f62d9 (diff) |
add link to public dashboard from shift view
Diffstat (limited to 'includes')
-rw-r--r-- | includes/controller/public_dashboard_controller.php | 8 | ||||
-rw-r--r-- | includes/pages/user_shifts.php | 1 |
2 files changed, 9 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')) ]) ]) ]); |