diff --git a/shynet/dashboard/templates/dashboard/pages/service.html b/shynet/dashboard/templates/dashboard/pages/service.html index f8d67da..0005d64 100644 --- a/shynet/dashboard/templates/dashboard/pages/service.html +++ b/shynet/dashboard/templates/dashboard/pages/service.html @@ -13,15 +13,12 @@ {% block service_content %} {% if not stats.has_hits %}
-
Get started

- It seems that you have not recorded any data yet! -
- Get started by placing the following snippet at the end of the <body> tag on any page you'd like to track. + This service hasn't collected any data yet. To get started, place the following code snippet at the end of the <body> tag on any page you'd like to track.

{% include 'dashboard/includes/service_snippet.html' %}
-{% endif %} +{% else %}
{% with classes="text-sm font-semibold" good_classes="text-positive-400" bad_classes="text-critical-400" neutral_classes="text-gray-400" %}
@@ -96,6 +93,7 @@
{% endwith %}
+{% endif %}
{% include 'dashboard/includes/time_chart.html' with data=stats.session_chart_data %}
diff --git a/shynet/dashboard/views.py b/shynet/dashboard/views.py index c071143..483fee0 100644 --- a/shynet/dashboard/views.py +++ b/shynet/dashboard/views.py @@ -66,6 +66,7 @@ class ServiceView( def get_context_data(self, **kwargs): data = super().get_context_data(**kwargs) + data["script_protocol"] = "https://" if settings.SCRIPT_USE_HTTPS else "http://" data["stats"] = self.object.get_core_stats(data["start_date"], data["end_date"]) data["object_list"] = Session.objects.filter( service=self.get_object(),