<aid="dashboard-vm-details-connect-button"class="btn btn-xs btn-default{% if not client_download %} operation{% endif %}{% if instance.status != "RUNNING"ornotinstance.get_connect_uri%}disabled{%endif%}"{%ifclient_download%}target="_blank"{%endif%}href="{% if not client_download %}{% url "dashboard.views.client-check"%}?vm={{instance.pk}}{%else%}{{instance.get_connect_uri}}{%endif%}"title="{% trans "ConnectviatheCIRCLEClient"%}">
{% if client_download %}
<aid="dashboard-vm-details-connect-button"class="btn btn-xs btn-default operation "href="{{ instance.get_connect_uri}}"title="{% trans "ConnectviatheCIRCLEClient"%}">
<iclass="fa fa-external-link"></i> {% trans "Connect" %}
</a>
<ahref="{% url "dashboard.views.client-check"%}?vm={{instance.pk}}">{% trans "Download client" %}</a>
{% else %}
<aid="dashboard-vm-details-connect-download-button"class="btn btn-xs btn-default operation "href="{% url "dashboard.views.client-check"%}?vm={{instance.pk}}"title="{% trans "DownloadtheCIRCLEClient"%}">
<iclass="fa fa-external-link"></i> {% trans "Connect (download client)" %}