node-list.html 1.02 KB
Newer Older
1 2 3 4 5 6 7 8 9
{% extends "dashboard/base.html" %}
{% load i18n %}
{% load render_table from django_tables2 %}
{% block content %}

<div class="row">
  <div class="col-md-12">
    <div class="panel panel-default">
      <div class="panel-heading">
10
        <h3 class="no-margin"><i class="icon-desktop"></i> {% trans "Compute nodes" %}</h3>
11
      </div>
12
	<div id="table_container">
13
	
14
        <div id="rendered_table" class="panel-body">
15
	      {% render_table table %}
16
        </div>
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 47 48 49 50
      </div>
    </div>
  </div>
</div>
<style>
  .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;
  }

  .node-list-table-admin {
    width: 130px;
  }
</style>
{% endblock %}

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