entry.html 1.27 KB
Newer Older
1 2 3 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
{% extends "box/base/entry.html" %}
{% load i18n %}
{% get_current_language as LANGUAGE_CODE %}

{% block content %}
<li class="entry" id="t{{t.id }}">
    {{ block.super }}
</li>
{% endblock content %}

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

{% block details %}
<ul>
    <li class="name">
        {% trans "System" %}:
        <span class="value">{{t.system}}</span>
        <div class="clear"></div>
    </li>
    <li class="type">
        {% trans "Size" %}:
        <span class="value">
            {{t.instance_type}}:
            <span class="cpu">{{t.instance_type.CPU}}</span>
            <span class="memory">{{t.instance_type.RAM}}</span>
            <span class="credit">{{t.instance_type.credit}}</span>
        </span>
    </li>
    <li class="description">
        {% trans "Description" %}:
        <span class="value">{{t.description}}</span>
        <div class="clear"></div>
    </li>
    <li class="date" >
        {% trans "Created at" %}:
        <span class="value">{{t.created_at}} ({{t.owner.get_profile}})</span>
        <div class="clear"></div>
    </li>
    <li class="count">
        {% trans "Running instances" %}:
        <span class="value">{{ t.running_instances }}</span>
    </li>
</ul>
{% endblock details %}