node-list.html 1.45 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

Bach Dániel committed
24 25 26 27 28 29 30 31 32 33 34 35
<div class="row">
  <div class="col-md-12">
    <div class="panel panel-default">
      <div class="panel-heading">
        <h3 class="no-margin"><i class="fa fa-area-chart"></i> {% trans "Graphs" %}</h3>
      </div>
       <img src="{% url "dashboard.views.node-list-graph" "alloc" "6h" %}"/>
       <img src="{% url "dashboard.views.node-list-graph" "vm" "6h" %}"/>
    </div>
  </div>
</div>

36 37
<style>
  .node-list-table tbody>tr>td, .node-list-table thead>tr>th {
38 39 40
    vertical-align: middle;
  }

41 42 43 44
  .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;
45 46 47 48 49 50
  }

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

51
  .node-list-table-monitor {
52
    width: 250px;
53 54 55 56 57
  }
</style>
{% endblock %}

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