node-list.html 1.15 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
	
17
        <div id="rendered_table" class="panel-body">
18
	      {% render_table table %}
19
        </div>
20 21 22 23 24
      </div>
    </div>
  </div>
</div>
<style>
25 26 27 28 29

  .node-list-table tbody>tr>td {
    vertical-align: middle;
  }

30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
  .popover {
    max-width: 600px;
  }

  .node-list-selected, .node-list-selected td {
    background-color: #e8e8e8 !important;
  }

  .node-list-selected:hover, .node-list-selected:hover td {
    background-color: #d0d0d0 !important;
  }

  .node-list-selected td:first-child {
    font-weight: bold;
  }

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

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

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