{% load i18n sizeformat %}

{% trans "Instance Overview" %}

{% trans "Info" %}


{% trans "Name" %}
{{ instance.name }}
{% trans "ID" %}
{{ instance.id }}
{% trans "Status" %}
{{ instance.status|title }}
{% trans "RAM" %}
{{ instance.full_flavor.ram|mbformat }}

{% trans "Connection Info" %}


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