Merge branch 'MDL-83084-main' of https://github.com/sarjona/moodle

This commit is contained in:
Huong Nguyen 2024-09-13 09:57:13 +07:00
commit ff39465628
No known key found for this signature in database
GPG Key ID: 40D88AB693A3E72A
6 changed files with 17 additions and 1 deletions

View File

@ -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')
];

View File

@ -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',

1
pix/i/viewcategory.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" preserveAspectRatio="xMinYMid meet"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M0 128C0 92.7 28.7 64 64 64H448c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128zm64 32v64c0 17.7 14.3 32 32 32H416c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32H96c-17.7 0-32 14.3-32 32zM80 320c-13.3 0-24 10.7-24 24s10.7 24 24 24h56c13.3 0 24-10.7 24-24s-10.7-24-24-24H80zm136 0c-13.3 0-24 10.7-24 24s10.7 24 24 24h48c13.3 0 24-10.7 24-24s-10.7-24-24-24H216z"/></svg>

After

Width:  |  Height:  |  Size: 653 B

View File

@ -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 {

View File

@ -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";

View File

@ -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";