def _get_dashboard_link(course_key):
 analytics_dashboard_url = '{0}/courses/{1}'.format(settings.ANALYTICS_DASHBOARD_URL, unicode(course_key))
 link = HTML(u'<a href="{0}" target="_blank">{1}</a>').format(analytics_dashboard_url, settings.ANALYTICS_DASHBOARD_NAME)
 return link

def _get_dashboard_link ( course_key ) : analytics_dashboard_url = '{0}/courses/{1}' . format ( settings . ANALYTICS_DASHBOARD_URL , unicode ( course_key ) ) link = HTML ( u'<a href="{0}" target="_blank">{1}</a>' ) . format ( analytics_dashboard_url , settings . ANALYTICS_DASHBOARD_NAME ) return link
construct a url to the external analytics dashboard .