Example #1
0
 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]
Example #2
0
 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"
         )
Example #3
0
 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")
Example #4
0
 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
     ]