Skill: Replace links to new skill wheel page

pull/5964/head
Angel Fernando Quiroz Campos 11 months ago
parent 1afcbd4e57
commit 89655065ff
No known key found for this signature in database
GPG Key ID: B284841AE3E562CD
  1. 3
      public/main/inc/lib/userportal.lib.php
  2. 2
      public/main/skills/skill_list.php
  3. 2
      public/main/template/default/skill/drh_report.html.twig
  4. 6
      public/main/template/default/skill/profile.html.twig
  5. 2
      src/CoreBundle/Controller/Admin/IndexBlocksController.php
  6. 2
      src/CoreBundle/Controller/IndexController.php

@ -5,6 +5,7 @@
use Chamilo\CoreBundle\Component\Utils\ActionIcon;
use Chamilo\CoreBundle\Component\Utils\ObjectIcon;
use Chamilo\CoreBundle\Component\Utils\ToolIcon;
use Chamilo\CoreBundle\Framework\Container;
/**
* Class IndexManager.
@ -216,7 +217,7 @@ class IndexManager
if (($allowSkillsManagement && api_is_drh()) || api_is_platform_admin()) {
$items[] = [
'icon' => Display::getMdiIcon(ActionIcon::EDIT_BADGE, 'ch-tool-icon', null, ICON_SIZE_SMALL, get_lang('My skills')),
'link' => api_get_path(WEB_CODE_PATH).'skills/skills_wheel.php',
'link' => Container::getRouter()->generate('skill_wheel'),
'title' => get_lang('Manage skills'),
];
}

@ -126,7 +126,7 @@ switch ($action) {
$toolbar .= Display::url(
Display::getMdiIcon(ObjectIcon::WHEEL, 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Skills wheel')),
api_get_path(WEB_CODE_PATH).'skills/skills_wheel.php',
Container::getRouter()->generate('skill_wheel'),
['title' => get_lang('Skills wheel')]
);

@ -4,7 +4,7 @@
{{ 'Skills wheel'|trans }}
</a>
{% if allow_drh_skills_management %}
<a class="btn btn--plain" href="{{ _p.web_main }}skills/skills_wheel.php">
<a class="btn btn--plain" href="{{ url('skill_wheel') }}">
{{ 'Manage skills'|trans }}
</a>
{% endif %}

@ -1,4 +1,4 @@
{% if search_skill_list is not null %}
{% if search_skill_list is defined and search_skill_list is not null %}
<div class="skills-skills">
<h3>{{ "Skills"|trans }}</h3>
<ul class="holder">
@ -15,7 +15,7 @@
</div>
{% endif %}
{% if profiles is not null %}
{% if profiles is defined and profiles is not null %}
<div class="skills-profiles">
<h3>{{ "Skill profiles"|trans }}</h3>
<ul class="holder">
@ -92,7 +92,7 @@
</div>
{% endfor %}
{% else %}
{% if search_skill_list is null %}
{% if search_skill_list is defined and search_skill_list is null %}
<div class="warning-message">{{ "No results found"|trans }}</div>
{% endif %}
{% endif %}

@ -580,7 +580,7 @@ class IndexBlocksController extends BaseController
$items = [];
$items[] = [
'class' => 'item-skill-wheel',
'url' => $this->generateUrl('legacy_main', ['name' => 'skills/skills_wheel.php']),
'route' => ['name' => 'SkillWheel'],
'label' => $this->translator->trans('Skills wheel'),
];
$items[] = [

@ -31,7 +31,7 @@ class IndexController extends BaseController
#[Route('/social', name: 'chamilo_core_socialnetwork', options: ['expose' => true])]
#[Route('/admin', name: 'admin', options: ['expose' => true])]
#[Route('/p/{slug}', name: 'public_page')]
#[Route('/skill/wheel', name: 'skill')]
#[Route('/skill/wheel', name: 'skill_wheel')]
public function index(): Response
{
return $this->render('@ChamiloCore/Layout/no_layout.html.twig', ['content' => '']);

Loading…
Cancel
Save