def show_analytics_dashboard_message(course_key):
 if hasattr(course_key, 'ccx'):
  ccx_analytics_enabled = settings.FEATURES.get('ENABLE_CCX_ANALYTICS_DASHBOARD_URL', False)
  return (settings.ANALYTICS_DASHBOARD_URL and ccx_analytics_enabled)
 return settings.ANALYTICS_DASHBOARD_URL

def show_analytics_dashboard_message ( course_key ) : if hasattr ( course_key , 'ccx' ) : ccx_analytics_enabled = settings . FEATURES . get ( 'ENABLE_CCX_ANALYTICS_DASHBOARD_URL' , False ) return ( settings . ANALYTICS_DASHBOARD_URL and ccx_analytics_enabled ) return settings . ANALYTICS_DASHBOARD_URL
defines whether or not the analytics dashboard url should be displayed .