Add link to Works Report in session on mySpace/session.php - refs BT#11031

1.10.x
Angel Fernando Quiroz Campos 9 years ago
parent f316e71b08
commit 07d75682fa
  1. 4
      main/inc/ajax/model.ajax.php
  2. 7
      main/mySpace/session.php

@ -985,8 +985,8 @@ switch ($action) {
$detailButtons = [];
$detailButtons[] = Display::url(
Display::return_icon('works.png', get_lang('Works')),
api_get_path(WEB_CODE_PATH) . 'mySpace/works_in_session_report.php'
Display::return_icon('works.png', get_lang('WorksReport')),
api_get_path(WEB_CODE_PATH) . 'mySpace/works_in_session_report.php?session=' . $session['id']
);
$detailButtons[] = Display::url(
Display::return_icon('2rightarrow.png'),

@ -60,6 +60,11 @@ if (api_is_drh() || api_is_session_admin() || api_is_platform_admin()) {
);
}
$menu_items[] = Display::url(
Display::return_icon('works.png', get_lang('WorksReport'), [], ICON_SIZE_MEDIUM),
api_get_path(WEB_CODE_PATH) . 'mySpace/works_in_session_report.php'
);
$actionsLeft = '';
$nb_menu_items = count($menu_items);
if ($nb_menu_items > 1) {
@ -82,7 +87,7 @@ if (api_is_drh() || api_is_session_admin() || api_is_platform_admin()) {
$toolbar = Display::toolbarAction(
'toolbar-session',
$content = array(0 => $actionsLeft, 1 => $actionsRight)
array($actionsLeft, $actionsRight)
);
echo $toolbar;

Loading…
Cancel
Save