add link to public dashboard from shift view

This commit is contained in:
msquare 2017-12-13 12:53:07 +01:00
parent 2fdf520daf
commit 5278be1f0f
3 changed files with 14 additions and 0 deletions

View File

@ -19,4 +19,12 @@ function public_dashboard_controller()
public_dashboard_view($stats, $free_shifts) public_dashboard_view($stats, $free_shifts)
]; ];
} }
/**
* Returns url to public dashboard
*/
function public_dashboard_link()
{
return page_link_to('public-dashboard');
}
?> ?>

View File

@ -250,6 +250,7 @@ function view_user_shifts()
'set_last_4h' => _('last 4h'), 'set_last_4h' => _('last 4h'),
'set_next_4h' => _('next 4h'), 'set_next_4h' => _('next 4h'),
'set_next_8h' => _('next 8h'), 'set_next_8h' => _('next 8h'),
'buttons' => button(public_dashboard_link(), glyph('dashboard') . _('Public Dashboard'))
]) ])
]) ])
]); ]);

View File

@ -54,6 +54,11 @@
<a href="javascript:setHours(8)" class="btn btn-default ">%set_next_8h%</a> <a href="javascript:setHours(8)" class="btn btn-default ">%set_next_8h%</a>
</div> </div>
</div> </div>
<div class="form-group" style="margin-top: .5em">
<div class="btn-group">
%buttons%
</div>
</div>
</div> </div>
<div class="col-md-2">%room_select%</div> <div class="col-md-2">%room_select%</div>
<div class="col-md-2">%type_select%</div> <div class="col-md-2">%type_select%</div>