Commit 0dcbe8f9 by Csók Tamás

vm-detail.html: Modified the checking and the method used for connect_uri

parent c851d508
......@@ -122,8 +122,8 @@
</span>
</div>
<div id="dashboard-vm-details-connect">
<form method="POST" action="{{ instance.access_method}}:cloud:{{ instance.pw }}:{% if instance.get_connect_port %}{{ instance.get_connect_host }}:{{ instance.get_connect_port }}{% endif %}" target="_blank">
<button id="dashboard-vm-details-connect-button" type="submit" class="btn btn-xs btn-default" {% if instance.status != "RUNNING" %}disabled{% endif %} title="{% trans "Connect via the CIRCLE Client" %}">
<form method="POST" action="{% if instance.get_connect_uri %}{{ instance.get_connect_uri}}{% endif %}" target="_blank">
<button id="dashboard-vm-details-connect-button" type="submit" class="btn btn-xs btn-default" {% if instance.status != "RUNNING" or not instance.get_connect_uri %}disabled{% endif %} title="{% trans "Connect via the CIRCLE Client" %}">
<i class="fa fa-external-link"></i> {% trans "Connect" %}
</button>
</form>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment