From fef531efa9288411bd73a881174813d54eb7ceaa Mon Sep 17 00:00:00 2001 From: "R. Miles McCain" Date: Sat, 24 Apr 2021 17:06:19 +0000 Subject: [PATCH] Improve homepage when no services exist --- shynet/dashboard/templates/dashboard/pages/dashboard.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shynet/dashboard/templates/dashboard/pages/dashboard.html b/shynet/dashboard/templates/dashboard/pages/dashboard.html index 3cff3eb..cda47d1 100644 --- a/shynet/dashboard/templates/dashboard/pages/dashboard.html +++ b/shynet/dashboard/templates/dashboard/pages/dashboard.html @@ -21,9 +21,11 @@ {% for object in object_list|dictsortreversed:"stats.session_count" %} {% include 'dashboard/includes/service_overview.html' %} {% empty %} -

You don't have any services on {{request.site.name|default:"Shynet"}} yet.

+

You don't have any services yet. {% if can_create %}Get started by creating one.{% endif %}

{% endfor %} +{% if object_list %} {% pagination page_obj request %} +{% endif %} {% endblock %} \ No newline at end of file