{% load i18n %} {% get_current_language as LANGUAGE_CODE %} {% if instances %} {% for i in instances %} <li class="wm"> <div class="summary"> <!--<div class="id">161</div>--> <div class="name {% if i.state == 'ACTIVE' %}wm-on{% else %}wm-off{% endif %}"> {{i.name|truncatechars:20}} </div> <div class="status"> {{i.state}} </div> <div class="actions"> {% if i.state == 'ACTIVE' %} <a href="{{i.get_connect_uri}}" title="{% trans "Connect" %}"> <img src="static/icons/plug.png" alt="{% trans "Connect" %}" /> </a> <a href="/vm/suspend/{{i.id}}/" onclick="alert('Hamarosan a mozikban.'); return false" title="{% trans "Suspend" %}"> <img src="/static/icons/control-pause.png" alt="{% trans "Suspend" %}" /> </a> <a href="/vm/delete/{{i.id}}/" onclick="return confirm('Biztosan törli a gépet?')" title="{% trans "Delete" %}"> <img src="/static/icons/minus-circle.png" alt="{% trans "Delete" %}" /> </a> <a href="/vm/reset/{{i.id}}/" onclick="alert('Hamarosan a mozikban.'); return false" title="{% trans "Reboot" %}"> <img src="/static/icons/arrow-circle-double.png" alt="↺" /> </a> {% endif %} {% if i.state == 'PENDING' %} <img src="/static/load-2.gif" /> {% trans "starting…" %} {% endif %} {% if i.state == 'SUSPENDED' %} <a href="/vm/continue/{{i.id}}/" title="{% trans "Resume" %}"> <img src="/static/icons/control.png" alt="{% trans "Resume" %}" /> </a> <a href="/vm/delete/{{i.id}}/" onclick="return confirm('Biztosan törli a gépet?')" title="{% trans "Delete" %}"> <img src="/static/icons/minus-circle.png" alt="{% trans "Delete" %}" /> </a> {% endif %} {% if i.state == 'FAILED' %} <a href="/vm/delete/{{i.id}}/" title="{% trans "Delete" %}"> <img src="/static/icons/minus-circle.png" alt="{% trans "Delete" %}" /> </a> {% endif %} </div> <div class="clear"></div> </div> <div class="details"> <div class="details-container"><h3>Részletek</h3> <ul> <li class="name">{% trans "Hostname" %}: <span class="value">{{i.name}}</span></li> <li class="os-linux">{% trans "System" %}: <span class="value">{{i.template.disk.name}}</span></li> <li class="type">{% trans "Size" %}: <span class="value">{{i.template.instance_type.name}}</span></li> <li class="date">{% trans "Created at" %}: <span class="value">{{i.created_at}}</span></li> <li class="date">{% trans "Expiration" %}: <span class="value"><abbr title="1 nap, 5 óra, 34 perc">1 nap</abbr></span></li> <li> <span class="value"><a href="/vm/show/{{i.id}}/" title="{{i.name}}">{% trans "More details" %}</a></span></li> </ul> </div> </div> </li> {% endfor %} {% else %} <div id="new-wm-tooltip"> <div id="new-wm-tooltip-container"> <p> {% trans "You have not started any machines yet." %} </p> <p> {% trans "Choose a template, and you can use the system in a minute." %} </p> <div id="new-wm-tooltip-tail"></div> </div> </div> {% endif %}