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:
parent
3d5ce35f5e
commit
b5e0a46dbd
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue