resources.html 1.22 KB
Newer Older
1 2 3
{% load i18n %}
  {% csrf_token %}

4
  <dl class="dl-horizontal">
5
    <dt>{% trans "Node name" %}:</dt><dd>{{ node.name }}</dd>
6
    <dt>{% trans "CPU cores" %}:</dt><dd>{{ node.info.core_num }}</dd>
7
    <dt>{% trans "RAM size" %}:</dt> <dd>{% widthratio node.info.ram_size 1048576 1 %} MiB</dd>
8
    <dt>{% trans "Architecture" %}:</dt><dd>{{ node.info.architecture }}</dd>
9 10 11 12
    <dt>{% trans "Host IP" %}:</dt><dd>{{ node.host.ipv4 }}</dd>
    <dt>{% trans "Enabled" %}:</dt><dd>{{ node.enabled }}</dd>
    <dt>{% trans "Host online" %}:</dt><dd> {{ node.online }}</dd>
    <dt>{% trans "Priority" %}:</dt><dd>{{ node.priority }}</dd>
13 14 15 16
    <dt>{% trans "Host owner" %}:</dt>
    <dd>
      {% include "dashboard/_display-name.html" with user=node.host.owner show_org=True %}
    </dd>
17
    <dt>{% trans "Vlan" %}:</dt><dd>{{ node.host.vlan }}</dd>
18 19 20
    <dt>{% trans "Host name" %}:</dt>
    <dd>
      {{ node.host.hostname }}
21
      {% if request.user.is_superuser %}
22 23 24 25
      <a href="{{ node.host.get_absolute_url }}" class="btn btn-default btn-xs">
        <i class="fa fa-pencil"></i>
        {% trans "Edit host" %}
      </a>
26
      {% endif  %}
27
    </dd>
28 29
    </dl>

30 31 32 33 34
{% block extra_js %}
  <style>
    label {padding-top: 6px;}
  </style>
{% endblock %}