|
|
|
@ -2854,7 +2854,6 @@ function getAllWork( |
|
|
|
|
|
|
|
|
|
// Actions. |
|
|
|
|
$action = ''; |
|
|
|
|
if (api_is_allowed_to_edit()) { |
|
|
|
|
if ($blockScoreEdition && !api_is_platform_admin() && !empty($work['qualification_score'])) { |
|
|
|
|
$rateLink = ''; |
|
|
|
|
} else { |
|
|
|
@ -2862,7 +2861,6 @@ function getAllWork( |
|
|
|
|
$rateIcon.'</a> '; |
|
|
|
|
} |
|
|
|
|
$action .= $rateLink; |
|
|
|
|
|
|
|
|
|
if ($unoconv && empty($work['contains_file'])) { |
|
|
|
|
$action .= '<a |
|
|
|
|
href="'.$url.'work_list_all.php?'.$cidReq.'&id='.$work_id.'&action=export_to_doc&item_id='.$item_id.'" |
|
|
|
@ -2984,23 +2982,6 @@ function getAllWork( |
|
|
|
|
$action .= '<a href="'.$url.'work_list_all.php?'.$cidReq.'&id='.$work_id.'&action=delete&item_id='.$item_id.'" onclick="javascript:if(!confirm('."'".addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES))."'".')) return false;" title="'.get_lang('Delete').'" >'. |
|
|
|
|
Display::return_icon('delete.png', get_lang('Delete'), '', ICON_SIZE_SMALL).'</a>'; |
|
|
|
|
}*/ |
|
|
|
|
} elseif ($is_author && (empty($work['qualificator_id']) || $work['qualificator_id'] == 0)) { |
|
|
|
|
$action .= '<a href="'.$url.'view.php?'.$cidReq.'&id='.$item_id.'" title="'.get_lang('View').'">'. |
|
|
|
|
Display::return_icon('default.png', get_lang('View'), [], ICON_SIZE_SMALL).'</a>'; |
|
|
|
|
|
|
|
|
|
if (api_get_course_setting('student_delete_own_publication') == 1) { |
|
|
|
|
if (api_is_allowed_to_session_edit(false, true)) { |
|
|
|
|
$action .= '<a href="'.$url.'edit.php?'.$cidReq.'&item_id='.$item_id.'&id='.$work['parent_id'].'" title="'.get_lang('Modify').'">'. |
|
|
|
|
Display::return_icon('edit.png', get_lang('Comment'), [], ICON_SIZE_SMALL).'</a>'; |
|
|
|
|
} |
|
|
|
|
$action .= ' <a href="'.$url.'work_list.php?'.$cidReq.'&action=delete&item_id='.$item_id.'&id='.$work['parent_id'].'" onclick="javascript:if(!confirm('."'".addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES))."'".')) return false;" title="'.get_lang('Delete').'" >'. |
|
|
|
|
Display::return_icon('delete.png', get_lang('Delete'), '', ICON_SIZE_SMALL).'</a>'; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
$action .= '<a href="'.$url.'view.php?'.$cidReq.'&id='.$item_id.'" title="'.get_lang('View').'">'. |
|
|
|
|
Display::return_icon('default.png', get_lang('View'), [], ICON_SIZE_SMALL).'</a>'; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Status. |
|
|
|
|
if (empty($work['qualificator_id'])) { |
|
|
|
|
$qualificator_id = Display::label(get_lang('NotRevised'), 'warning'); |
|
|
|
@ -3011,7 +2992,7 @@ function getAllWork( |
|
|
|
|
$work['actions'] = '<div class="work-action">'.$linkToDownload.$action.'</div>'; |
|
|
|
|
$work['correction'] = $correction; |
|
|
|
|
|
|
|
|
|
if (!empty($compilation) && $is_allowed_to_edit) { |
|
|
|
|
if (!empty($compilation)) { |
|
|
|
|
$compilationId = $compilation->getCompilatioId($item_id, $courseId); |
|
|
|
|
if ($compilationId) { |
|
|
|
|
$actionCompilatio = "<div id='id_avancement".$item_id."' class='compilation_block'> |
|
|
|
|