entry.html 2.77 KB
Newer Older
1 2
{% extends "box/base/entry.html" %}
{% load i18n %}
3
{% load staticfiles %}
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
{% get_current_language as LANGUAGE_CODE %}

{% block content %}
<li class="entry {% if id == vm.id %}opened{% endif %}">
    {{block.super }}
</li>
{% endblock content %}

{% block summary %}
    {% include "box/vm/summary.html" %}
{% endblock summary %}

{% block details %}
<ul>
    <li class="name">
        {% trans "Hostname" %}:
        <span class="value">{{vm.name}}</span>
        <div class="clear"></div>
    </li>
    <li class="os-{{vm.template.os_type}}">
        {% trans "System" %}:
        <span class="value">{{vm.template.system}}</span>
        <div class="clear"></div>
    </li>
    <li class="template">
        {% trans "Type" %}:
        <span class="value">{{vm.share.type}}</span>
        <div class="clear"></div>
    </li>
    <li class="template">
        {% trans "Share" %}:
        <span class="value">{{vm.share.name}}</span>
        <div class="clear"></div>
    </li>
    <li class="template">
        {% trans "Template" %}:
        <span class="value">{{vm.template.name}}</span>
        <div class="clear"></div>
    </li>
    <li class="type">
        {% trans "Size" %}:
        <span class="value">
            {{vm.template.instance_type.name}}:
            <span class="cpu">{{vm.template.instance_type.CPU}}</span>
            <span class="memory">{{vm.template.instance_type.RAM}}</span>
            <span class="credit">{{vm.template.instance_type.credit}}</span>
        </span>
    </li>
    <li class="date">
        {% trans "Created at" %}:
        <span class="value">{{vm.created_at}}</span>
    </li>
    {% if vm.time_of_suspend %}
    <li class="date">
        {% trans "time of suspend"|capfirst %}:
        <span class="value"> <abbr title="{{vm.time_of_suspend}}">{{vm.time_of_suspend|timeuntil}}</abbr>
            <a href="#"  class="renew-vm renew-suspend-vm" data-id="{{ vm.id }}" title="{% trans "Renew suspend time" %}">
61
                <img src="{% static "icons/control-double.png" %}" alt="{% trans "Renew suspend time" %}" />
62 63 64 65 66 67 68 69 70
            </a>
        </span>
    </li>
    {% endif %}
        {% if vm.time_of_delete %}
    <li class="date">
        {% trans "time of delete"|capfirst %}:
        <span class="value"> <abbr title="{{vm.time_of_delete}}">{{vm.time_of_delete|timeuntil}}</abbr>
            <a href="#"  class="renew-vm renew-delete-vm" data-id="{{ vm.id }}" title="{% trans "Renew deletion time" %}">
71
                <img src="{% static "icons/control-double.png" %}" alt="{% trans "Renew deletion time" %}" />
72 73 74 75 76 77 78
            </a>
        </span>
    </li>
    {% endif %}
    <li>
        &nbsp;
        <span class="value">
79
            <a href="{{ vm.get_absolute_url }}" title="{{vm.name}}">{% trans "More details" %}</a>
80 81 82 83
        </span>
    </li>
</ul>
{% endblock details %}