From 41c1f38cdb67d712f75a8711158e1c6954c21743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Wed, 15 Jul 2020 15:43:24 +0200 Subject: [PATCH] do not link machine if no url present --- sdbs_infra/dashboard/templates/index.html | 38 ++++++++++++++--------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/sdbs_infra/dashboard/templates/index.html b/sdbs_infra/dashboard/templates/index.html index d619cf9..3ad62bc 100644 --- a/sdbs_infra/dashboard/templates/index.html +++ b/sdbs_infra/dashboard/templates/index.html @@ -63,22 +63,30 @@ VPS STATS — {{ vps_stats|safe }} {% for machine in machines %} - -
- {% if machine.image_url %} - image for {{ machine.short_name }} - {% endif %} -
-

{{ machine.short_name }}

- {% if machine.description %} -

{{ machine.description }}

- {% endif %} -
-
-
- STATUS: {{ machine.status }} -
+ {% if machine.url %} +
+ {% else %} +
+ {% endif %} +
+ {% if machine.image_url %} + image for {{ machine.short_name }} + {% endif %} +
+

{{ machine.short_name }}

+ {% if machine.description %} +

{{ machine.description }}

+ {% endif %} +
+
+
+ STATUS: {{ machine.status }} +
+ {% if machine.url %}
+ {% else %} +
+ {% endif %} {% endfor %} {% endif %}