+ {% if selects|length == 0 %}
+ {% include 'include/getstarted.html' %}
+ {% endif %}
Choose server
{% 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
+