diff --git a/app/templates/config.html b/app/templates/config.html index ec72b7b8..fbeb0da0 100644 --- a/app/templates/config.html +++ b/app/templates/config.html @@ -2,6 +2,9 @@ {% block content %}
+ {% if selects|length == 0 %} + {% include 'include/getstarted.html' %} + {% endif %}

Choose server

@@ -72,7 +75,7 @@ {% if stderr or error %} {% include 'include/errors.html' %} {% else %} -
Config is ok
+
The config is ok
Go to view stats {% endif %} {% endif %} diff --git a/app/templates/delver.html b/app/templates/delver.html index 9ac1fcd2..ddfc1cc8 100644 --- a/app/templates/delver.html +++ b/app/templates/delver.html @@ -1,5 +1,9 @@ {% extends "base.html" %} {% block content %} + +{% if selects|length == 0 %} + {% include 'include/getstarted.html' %} +{% else %}

Choose server

@@ -47,5 +51,6 @@

{% endif %} -
-{% endblock %} \ No newline at end of file + +{% endif %} +{% endblock %} diff --git a/app/templates/hapservers.html b/app/templates/hapservers.html index bdd0b4cb..bf47f31b 100644 --- a/app/templates/hapservers.html +++ b/app/templates/hapservers.html @@ -32,6 +32,9 @@ {% endfor %}
+ {% if servers|length == 0 %} + {% include 'include/getstarted.html' %} + {% endif %} {% for s in servers %} {% if serv %} @@ -50,7 +53,7 @@ showMetrics(); {% endif %} -
+
@@ -163,11 +166,9 @@
{% if serv %} - {% if service == 'haproxy' %} +
- {% else %} -
- {% endif %} +
{% if service == 'haproxy' %} diff --git a/app/templates/include/getstarted.html b/app/templates/include/getstarted.html new file mode 100644 index 00000000..a18a8c7e --- /dev/null +++ b/app/templates/include/getstarted.html @@ -0,0 +1,18 @@ +
+

Welcome and let's get started!

+ +
+
+

+ You don't have any servers. + Watch video how to add your first server + {% if role == 2 %} + and go to the + "Servers" + {% elif role == 1 %} + and go to the + "Admin area" + {% endif %} + to add your first server +

+
diff --git a/app/templates/metrics.html b/app/templates/metrics.html index b247bcb1..7341ac0e 100644 --- a/app/templates/metrics.html +++ b/app/templates/metrics.html @@ -15,14 +15,18 @@ th, tr, td { -
-
- -
+{% if servers|length == 0 %} + {% include 'include/getstarted.html' %} +{% else %} +
+
+ +
+
{% for s in servers %} -
- -
+
+ +
{% endfor %} -{% endblock %} \ No newline at end of file +{% endif %} +{% endblock %} diff --git a/app/templates/viewstats.html b/app/templates/viewstats.html index 425a5270..d813bc99 100644 --- a/app/templates/viewstats.html +++ b/app/templates/viewstats.html @@ -1,6 +1,9 @@ {% extends "base.html" %} {% block content %}
+{% if selects|length == 0 %} + {% include 'include/getstarted.html' %} +{% else %}