| @@ 381-386 (lines=6) @@ | ||
| 378 | // These links are only visible by the course manager. |
|
| 379 | unset($lnk); |
|
| 380 | if (api_is_allowed_to_edit(null, true) && !api_is_coach()) { |
|
| 381 | if ($tool['visibility'] == '1' || $tool['name'] == TOOL_TRACKING) { |
|
| 382 | $link['name'] = Display::returnFontAwesomeIcon('minus'); |
|
| 383 | $link['title'] = get_lang('Deactivate'); |
|
| 384 | $link['cmd'] = 'hide=yes'; |
|
| 385 | $lnk[] = $link; |
|
| 386 | } |
|
| 387 | ||
| 388 | if ($course_tool_category == TOOL_PUBLIC_BUT_HIDDEN) { |
|
| 389 | //$link['name'] = Display::return_icon('add.gif', get_lang('Activate')); |
|
| @@ 420-425 (lines=6) @@ | ||
| 417 | $lnk[] = $link; |
|
| 418 | } |
|
| 419 | } |
|
| 420 | if ($tool['visibility'] == 0 && $tool['added_tool'] == 0) { |
|
| 421 | $link['name'] = Display::returnFontAwesomeIcon('trash'); |
|
| 422 | $link['title'] = get_lang('Remove'); |
|
| 423 | $link['cmd'] = 'remove=yes'; |
|
| 424 | $lnk[] = $link; |
|
| 425 | } |
|
| 426 | } |
|
| 427 | if (is_array($lnk)) { |
|
| 428 | $html .= '<div class="pull-right">'; |
|