MDL-58617 core_output: add mapping for dashboard on user menu

This commit is contained in:
Simey Lameze 2017-04-20 09:11:25 +08:00
parent 6d14355ce8
commit f3dacc3860
4 changed files with 5 additions and 1 deletions

View File

@ -199,6 +199,7 @@ class icon_system_fontawesome extends icon_system_font {
'core:i/cohort' => 'fa-users',
'core:i/competencies' => 'fa-check-square-o',
'core:i/completion_self' => 'fa-user-o',
'core:i/dashboard' => 'fa-tachometer',
'core:i/lock' => 'fa-lock',
'core:i/courseevent' => 'fa-calendar',
'core:i/db' => 'fa-database',

BIN
pix/i/dashboard.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

3
pix/i/dashboard.svg Normal file
View File

@ -0,0 +1,3 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
<!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">
]><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="-0.2 0 16 16" preserveAspectRatio="xMinYMid meet" overflow="visible"><path d="M6 .4c.4-.1.8-.1 1.3-.1 1.5 0 3 .5 4.2 1.4-.6.2-1.2.5-1.7 1-.1 0-.2.1-.2.1-.7-.3-1.5-.6-2.4-.6h-.3C6.8 1.6 6.5.9 6 .4zm5.7 9c-.2.5-.5 1-1 1.4-.3.3-.8.6-1.2.8.2.7.3 1.4.1 2.2.9-.3 1.8-.9 2.5-1.6.9-.9 1.4-1.9 1.8-3-.7.3-1.4.3-2.2.2zm-8.7.7c0-.1.1-.1 0 0-.5-1-.8-2.1-.7-3.2C1.6 6.8.9 6.5.4 6 0 8 .5 10.2 2 11.9c.2-.7.5-1.3 1-1.8zm7.4-6.7c-1.2 1.2-1.2 3.1 0 4.2 1.2 1.2 3.1 1.2 4.2 0s1.2-3.1 0-4.2c-1.1-1.2-3-1.2-4.2 0zm-6.7 7.4c-1.2 1.2-1.2 3.1 0 4.2 1.2 1.2 3.1 1.2 4.2 0 1.2-1.2 1.2-3.1 0-4.2-1.1-1.2-3-1.2-4.2 0zM.9.9C-.3 2.1-.3 4 .9 5.1 2 6.3 4 6.3 5.1 5.1 6.3 3.9 6.3 2 5.1.9 4-.3 2-.3.9.9z" fill="#999"/></svg>

After

Width:  |  Height:  |  Size: 920 B

View File

@ -859,7 +859,7 @@ function user_get_user_navigation_info($user, $page, $options = array()) {
$myhome->url = new moodle_url('/my/');
$myhome->title = get_string('mymoodle', 'admin');
$myhome->titleidentifier = 'mymoodle,admin';
$myhome->pix = "i/course";
$myhome->pix = "i/dashboard";
$returnobject->navitems[] = $myhome;
// Links: My Profile.