|
|
|
@ -609,6 +609,7 @@ function User_view(
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$enable_export = config('enable_shifts_export');
|
|
|
|
|
return page_with_title(
|
|
|
|
|
'<span class="icon-icon_angel"></span> '
|
|
|
|
|
. (
|
|
|
|
@ -656,15 +657,15 @@ function User_view(
|
|
|
|
|
page_link_to('user_settings'),
|
|
|
|
|
icon('gear') . __('Settings')
|
|
|
|
|
) : '',
|
|
|
|
|
($its_me && $auth->can('ical')) ? button(
|
|
|
|
|
($its_me && $enable_export && $auth->can('ical')) ? button(
|
|
|
|
|
page_link_to('ical', ['key' => $user_source->api_key]),
|
|
|
|
|
icon('calendar3') . __('iCal Export')
|
|
|
|
|
) : '',
|
|
|
|
|
($its_me && $auth->can('shifts_json_export')) ? button(
|
|
|
|
|
($its_me && $enable_export && $auth->can('shifts_json_export')) ? button(
|
|
|
|
|
page_link_to('shifts_json_export', ['key' => $user_source->api_key]),
|
|
|
|
|
icon('box-arrow-up-right') . __('JSON Export')
|
|
|
|
|
) : '',
|
|
|
|
|
($its_me && (
|
|
|
|
|
($its_me && $enable_export && (
|
|
|
|
|
$auth->can('shifts_json_export')
|
|
|
|
|
|| $auth->can('ical')
|
|
|
|
|
|| $auth->can('atom')
|
|
|
|
@ -703,7 +704,7 @@ function User_view(
|
|
|
|
|
page_link_to('user_shifts')
|
|
|
|
|
), true)
|
|
|
|
|
: '',
|
|
|
|
|
$its_me ? ical_hint() : ''
|
|
|
|
|
$its_me && $enable_export ? ical_hint() : ''
|
|
|
|
|
]
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|