MDL-58617 core_output: add mapping for dashboard on user menu
authorSimey Lameze <simey@moodle.com>
Thu, 20 Apr 2017 01:11:25 +0000 (09:11 +0800)
committerSimey Lameze <simey@moodle.com>
Thu, 20 Apr 2017 05:56:13 +0000 (13:56 +0800)
lib/classes/output/icon_system_fontawesome.php
pix/i/dashboard.png [new file with mode: 0644]
pix/i/dashboard.svg [new file with mode: 0644]
user/lib.php

index 15ea1d2..ef217a6 100644 (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',
diff --git a/pix/i/dashboard.png b/pix/i/dashboard.png
new file mode 100644 (file)
index 0000000..c8e3f48
Binary files /dev/null and b/pix/i/dashboard.png differ
diff --git a/pix/i/dashboard.svg b/pix/i/dashboard.svg
new file mode 100644 (file)
index 0000000..db66812
--- /dev/null
@@ -0,0 +1,3 @@
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [\r
+       <!ENTITY ns_flows "http://ns.adobe.com/Flows/1.0/">\r
+]><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>
\ No newline at end of file
index 9af62fd..285a4a8 100644 (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.