diff --git a/course/classes/management/helper.php b/course/classes/management/helper.php index e54c10dd93e..a278032ea4c 100644 --- a/course/classes/management/helper.php +++ b/course/classes/management/helper.php @@ -179,7 +179,7 @@ class helper { // View link. $actions['view'] = [ 'url' => new \moodle_url('/course/index.php', ['categoryid' => $category->id]), - 'icon' => null, + 'icon' => new \pix_icon('i/viewcategory', new \lang_string('view')), 'string' => get_string('view') ]; diff --git a/lib/classes/output/icon_system_fontawesome.php b/lib/classes/output/icon_system_fontawesome.php index 48fda0d3683..a5439d085c1 100644 --- a/lib/classes/output/icon_system_fontawesome.php +++ b/lib/classes/output/icon_system_fontawesome.php @@ -352,6 +352,7 @@ class icon_system_fontawesome extends icon_system_font { 'core:i/userevent' => 'fa-clipboard-user', 'core:i/users' => 'fa-user-group', 'core:i/valid' => 'fa-check text-success', + 'core:i/viewcategory' => 'fa-pager', 'core:i/viewsection' => 'fa-pager', 'core:i/warning' => 'fa-triangle-exclamation text-warning', 'core:i/window_close' => 'fa-xmark', diff --git a/pix/i/viewcategory.svg b/pix/i/viewcategory.svg new file mode 100644 index 00000000000..dd873d0a12a --- /dev/null +++ b/pix/i/viewcategory.svg @@ -0,0 +1 @@ + diff --git a/theme/boost/scss/moodle/core.scss b/theme/boost/scss/moodle/core.scss index cfd07e15aa1..d89855f4297 100644 --- a/theme/boost/scss/moodle/core.scss +++ b/theme/boost/scss/moodle/core.scss @@ -2976,7 +2976,11 @@ body.dragging { font-size: 9px; width: 9px; border: 0; +} +.listitem-category .dropdown-toggle::after { + /* This can be removed when the .dropdown-toggle::after is updated to remove content. */ + content: none; } .dropleft .dropdown-toggle::before { diff --git a/theme/boost/style/moodle.css b/theme/boost/style/moodle.css index d7f562e06c3..9f78abc228b 100644 --- a/theme/boost/style/moodle.css +++ b/theme/boost/style/moodle.css @@ -25959,6 +25959,11 @@ body.dragging .dragging { border: 0; } +.listitem-category .dropdown-toggle::after { + /* This can be removed when the .dropdown-toggle::after is updated to remove content. */ + content: none; +} + .dropleft .dropdown-toggle::before { border: 0; content: "\f053"; diff --git a/theme/classic/style/moodle.css b/theme/classic/style/moodle.css index 46281c9305c..4621502cebd 100644 --- a/theme/classic/style/moodle.css +++ b/theme/classic/style/moodle.css @@ -25959,6 +25959,11 @@ body.dragging .dragging { border: 0; } +.listitem-category .dropdown-toggle::after { + /* This can be removed when the .dropdown-toggle::after is updated to remove content. */ + content: none; +} + .dropleft .dropdown-toggle::before { border: 0; content: "\f053";