def get_menu_entries(self, request): return [e for e in [ MenuEntry( text=_("Telemetry"), icon="fa fa-tachometer", url="shoop_admin:telemetry", category=self.category ) if is_telemetry_enabled() else None, ] if e]
def get_notifications(self, request): if is_telemetry_enabled() and is_in_grace_period() and not is_opt_out(): yield Notification( _("Statistics will be periodically sent to Shoop.io after 24 hours. Click here for more information."), title=_("Telemetry"), kind="info", url="shoop_admin:telemetry" )
def get_notifications(self, request): if is_telemetry_enabled() and is_in_grace_period( ) and not is_opt_out(): yield Notification(_( "Statistics will be periodically sent to Shoop.io after 24 hours. Click here for more information." ), title=_("Telemetry"), kind="info", url="shoop_admin:telemetry")
def get_menu_entries(self, request): return [ e for e in [ MenuEntry(text=_("Telemetry"), icon="fa fa-tachometer", url="shoop_admin:telemetry", category=self.category) if is_telemetry_enabled( ) else None, ] if e ]