From 58ba087476f44afa7be85584c15c6296fe2fb66e Mon Sep 17 00:00:00 2001 From: Daniel Markstedt Date: Thu, 28 Oct 2021 09:52:45 -0700 Subject: [PATCH] More user friendly netatalk connection status messages --- src/web/templates/index.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/web/templates/index.html b/src/web/templates/index.html index bee0172d..169ecbe7 100644 --- a/src/web/templates/index.html +++ b/src/web/templates/index.html @@ -326,7 +326,13 @@ -

{{netatalk_configured}} active connections (including the server)

+ {% if netatalk_configured == 1 %} +

The AppleShare server is running. No active connections

+ {% elif netatalk_configured == 2 %} +

{{netatalk_configured - 1}} active AFP connection

+ {% elif netatalk_configured > 2 %} +

{{netatalk_configured - 1}} active AFP connections

+ {% endif %} {% else %}

Install Netatalk to use the AppleTalk File Server. {% endif %}