{% load i18n sizeformat %}

{% trans "Instance Overview" %}

{% trans "Info" %}


{% trans "Name" %}
{{ instance.name }}
{% trans "ID" %}
{{ instance.id }}
{% trans "Datastore" %}
{{ instance.datastore.type }}
{% trans "Datastore Version" %}
{{ instance.datastore.version }}
{% trans "Status" %}
{{ instance.status|title }}

{% trans "Specs" %}


{% trans "Flavor" %}
{{ instance.full_flavor.name }}
{% trans "RAM" %}
{{ instance.full_flavor.ram|mbformat }}
{% if instance.volume %}
{% trans "Volume Size" %}
{{ instance.volume.size|diskgbformat }}
{% endif %}
{% trans "Created" %}
{{ instance.created|parse_isotime }}
{% trans "Updated" %}
{{ instance.updated|parse_isotime }}
{% block connection_info %} {% endblock %}

{% trans "Connection Info" %}


{% with instance.host as host %}
{% trans "Host" %}
{{ host }}
{% trans "Database Port" %}
3306
{# TODO: This should be a config #}
{% trans "Connection Examples" %}
mysql -h {{ host }} -u USERNAME -p
mysql://USERNAME:PASSWORD@{{ host }}:3306/DATABASE
{% endwith %}