User:Sage (Wiki Ed)/dashboard link.js

// Adds a link in the personal tools to dashboard.wikiedu.org, so that student editors can easily find their course page. // This will be included into a student editor's vector.js when they enroll in a dashboard.wikiedu.org course. ( function ( mw, $ ) {	$( function { var conf = { portletLabel: 'Course Dashboard', portletTooltip: 'Go to dashboard.wikiedu.org', url: 'https://dashboard.wikiedu.org' };

mw.util.addPortletLink(			'p-personal',			conf.url,			conf.portletLabel,			'pt-sandbox',			conf.portletTooltip,			null,			'#pt-preferences'		); } ); }( mediaWiki, jQuery ) );