1 {% extends
"base.html" %}
6 $(document).ready(function(){
7 // Pre-populated initial data at page load
8 var content_data = {{ content_data }};
10 var refresh = function() {
11 $.get(
"/rbd_iscsi_data", function(data) {
12 _.extend(content_data, data);
13 setTimeout(refresh,
30000);
17 console.log(content_data);
19 rivets.bind($(
"div#content"), content_data);
20 setTimeout(refresh,
30000);
22 $('#daemons').DataTable({
25 'lengthChange': false,
31 $('#images').DataTable({
34 'lengthChange': false,
43 <section class=
"content-header">
49 <section class=
"content">
51 <div class=
"box-header">
52 <h3 class=
"box-title">Daemons
</h3>
54 <div class=
"box-body">
55 <table id=
"daemons" class=
"table table-condensed">
59 <th># Active/Optimized
</th>
60 <th># Active/Non-Optimized
</th>
65 <tr rv-each-daemon=
"daemons">
66 <td>{daemon.server_hostname}
</td>
67 <td>{daemon.optimized_paths}
</td>
68 <td>{daemon.non_optimized_paths}
</td>
69 <td>{daemon.version | short_version}
</td>
77 <div class=
"box-header">
78 <h3 class=
"box-title">Images
</h3>
80 <div class=
"box-body">
81 <table id=
"images" class=
"table table-condensed">
86 <th>Active/Optimized
</th>
87 <th>Active/Non-Optimized
</th>
91 <tr rv-each-image=
"images">
92 <td>{image.pool_name}
</td>
94 <td>{image.optimized_paths}
</td>
95 <td>{image.non_optimized_paths}
</td>