My Shifts: Link Angeltypes

Closes #707 (The angel types in the "My Shifts" view should be linked to their description page)
This commit is contained in:
Igor Scheller 2020-10-18 01:07:23 +02:00 committed by msquare
parent 3d5ce35f5e
commit b5e0a46dbd
1 changed files with 3 additions and 1 deletions

View File

@ -339,7 +339,9 @@ function User_last_shift_render($user)
*/ */
function User_view_shiftentries($needed_angel_type) function User_view_shiftentries($needed_angel_type)
{ {
$shift_info = '<br><b>' . $needed_angel_type['name'] . ':</b> '; $shift_info = '<br><a href="'
. page_link_to('angeltypes', ['action' => 'view', 'angeltype_id' => $needed_angel_type['id']])
.'"><b>' . $needed_angel_type['name'] . '</a>:</b> ';
$shift_entries = []; $shift_entries = [];
foreach ($needed_angel_type['users'] as $user_shift) { foreach ($needed_angel_type['users'] as $user_shift) {