node-list.html 1.06 KB
Newer Older
1 2 3
{% extends "dashboard/base.html" %}
{% load i18n %}
{% load render_table from django_tables2 %}
4 5 6

{% block title-page %}{% trans "Nodes" %}{% endblock %}

7 8 9 10 11 12
{% block content %}

<div class="row">
  <div class="col-md-12">
    <div class="panel panel-default">
      <div class="panel-heading">
13
        <h3 class="no-margin"><i class="fa fa-desktop"></i> {% trans "Compute nodes" %}</h3>
14
      </div>
15
      <div id="table_container">
16
        <div id="rendered_table" class="panel-body">
17
          {% render_table table %}
18
        </div>
19 20 21 22
      </div>
    </div>
  </div>
</div>
23

24 25
<style>
  .node-list-table tbody>tr>td, .node-list-table thead>tr>th {
26 27 28
    vertical-align: middle;
  }

29 30 31 32
  .node-list-table thead>tr>th, 
  .node-list-table .enabled, .node-list-table .priority, 
  .node-list-table .overcommit, .node-list-table .number_of_VMs {
    text-align: center;
33 34 35 36 37 38
  }

  .node-list-table-thin {
    width: 10px;
  }

39
  .node-list-table-monitor {
40
    width: 250px;
41 42 43 44 45
  }
</style>
{% endblock %}

{% block extra_js %}
46
  <script src="{{ STATIC_URL}}dashboard/node-list.js"></script>
47
{% endblock %}