1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 03:54:15 +00:00

guest agent status indicator changed

This commit is contained in:
catborise 2020-01-21 15:39:16 +03:00
parent c79a635923
commit 9198615076

View file

@ -19,12 +19,12 @@
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li> <li>
<a class="navbar-link" href="{% url 'overview' compute.id %}"> <a class="navbar-link" href="{% url 'overview' compute.id %}">
<i class="fa fa-dashboard"></i> <i class="fa fa-server"></i>
{{ compute.name }} {% if compute.name != compute.hostname %} - {{ compute.hostname }}{% endif %} {{ compute.name }} {% if compute.name != compute.hostname %} - {{ compute.hostname }}{% endif %}
</a> </a>
</li> </li>
<li> <li>
<a href="{% url 'instances' compute.id %}"><i class="fa fa-server"></i> {% trans "Instances" %}</a> <a href="{% url 'instances' compute.id %}"><i class="fa fa-desktop"></i> {% trans "Instances" %}</a>
</li> </li>
<li class="active"> <li class="active">
<a href="{% url 'instance' compute.id vname %}"><i class="fa fa-hdd-o"></i> {{ vname }}</a> <a href="{% url 'instance' compute.id vname %}"><i class="fa fa-hdd-o"></i> {{ vname }}</a>
@ -49,19 +49,18 @@
<span class="label label-warning">{% trans "Suspend" %}</span> <span class="label label-warning">{% trans "Suspend" %}</span>
{% endif %} {% endif %}
| |
<i {%if guest_agent == True %} <span {%if guest_agent == True %}
{% if guest_agent_ready == True %} {% if guest_agent_ready == True %}
class="fa fa-plug text-success" class="label label-success"
title="Guest Agent Enabled & Connected" title="Guest Agent Enabled & Connected"
{% else %} {% else %}
class="fa fa-plug text-warning" class="label label-warning"
title="Guest Agent Enabled but not Connected" title="Guest Agent Enabled but not Connected"
{% endif %} {% endif %}
{% else %} {% else %}
class="fa fa-plug text-danger" class="label label-danger"
title="Guest Agent Not Enabled & Not Connected" title="Guest Agent Not Enabled & Not Connected"
{% endif %}> {% endif %}><i class="fa fa-plug"></i></span>
</i>
| |
{% if snapshots %} {% if snapshots %}
<i class="fa fa-camera text-primary" title="There are {{ snapshots|length }} snapshot(s)"></i> | <i class="fa fa-camera text-primary" title="There are {{ snapshots|length }} snapshot(s)"></i> |