blob: 5c08401d9b64a2998ab75541f18052b27f53f65f [file] [log] [blame]
Scott Baker5c4ce2b2014-07-08 09:35:40 -07001{% load admin_static %}
2
Scott Baker8da471e2015-01-13 00:33:45 -08003<script>
4 admin_object_name = "{{ opts.object_name }}";
5 admin_object_id = "{{ original.id }}";
Scott Bakerf13a0cf2015-01-13 09:46:52 -08006 admin_object_controller = "princeton-beta"; // XXX fix this
Scott Baker8da471e2015-01-13 00:33:45 -08007 if (admin_object_id == "") {
8 admin_object_id = undefined;
9 } else {
10 admin_object_id = parseInt(admin_object_id, 10);
11 }
12 {% if opts.object_name == "Site" %}
13 admin_controller_sites = [];
14 {% for record in original.controllersite.all %}
15 admin_controller_sites.push( {{ record.id }} );
16 {% endfor %}
17 {% endif %}
18 {% if opts.object_name == "Slice" %}
19 admin_controller_slices = [];
20 {% for record in original.controllerslice.all %}
21 admin_controller_slices.push( {{ record.id }} );
22 {% endfor %}
23 {% endif %}
24</script>
25
Scott Bakera226eb42014-06-09 11:55:26 -070026{% if not DISABLE_MINIDASHBOARD %}
27
Scott Baker38ece4a2014-03-27 09:08:36 -070028<div id="newMiniDashboard">
Scott Baker61aefcf2014-04-25 15:21:18 -070029 <div class="hide" id="selectedMainNav">{{ opts.verbose_name_plural|capfirst }}</div>
30 <div class="hide" id="currentOriginalNode">{{ original|truncatewords:"18" }}</div>
Scott Bakerf2c26de2014-06-10 20:37:40 -070031 <div class="hide" id="minidashStatus"></div>
Scott Bakerf13a0cf2015-01-13 09:46:52 -080032 <!-- <div class="miniDashPair">
Scott Baker38ece4a2014-03-27 09:08:36 -070033 <button type="button" name="nodeCount" id="miniDashNodeCount" class="minidashbutton">--</button>
Scott Bakerf4f7bf92014-05-13 17:04:40 -070034 <label for="nodeCount" id="miniDashNodeCountLabel">Active Nodes</label>
Scott Bakerf13a0cf2015-01-13 09:46:52 -080035 </div> -->
36 <div class="miniDashPair">
37 <button type="button" name="CPU" id="miniDashCPU" class="minidashbutton">--</button>
38 <label for="CPU" id="miniDashAvgLoadLabel">CPU</label>
Scott Baker38ece4a2014-03-27 09:08:36 -070039 </div>
40 <div class="miniDashPair">
Scott Bakerf13a0cf2015-01-13 09:46:52 -080041 <button type="button" name="bandwidthIn" id="miniDashBandwidthIn" class="minidashbutton">--</button>
42 <label for="bandwidthIn" id="miniDashBandwidthLabel">Bandwidth In</label>
Scott Baker38ece4a2014-03-27 09:08:36 -070043 </div>
44 <div class="miniDashPair">
Scott Bakerf13a0cf2015-01-13 09:46:52 -080045 <button type="button" name="bandwidthOut" id="miniDashBandwidthOut" class="minidashbutton">--</button>
46 <label for="bandwidthOut" id="miniDashBandwidthLabel">Bandwidth Out</label>
Scott Baker38ece4a2014-03-27 09:08:36 -070047 </div>
48 <div class="endDashPair">
49 </div>
50</div>
51
52<div id="nodeCountDialog" class="miniDashModal" >
53<div id="nodeCountGraph" ></div>
54</div>
55
56<div id="bandwidthDialog" class="miniDashModal" >
57<div id="bandwidthGraph" ></div>
58</div>
59
60<div id="avgLoadDialog" class="miniDashModal" >
61<div id="avgLoadGraph" ></div>
62</div>
63
Scott Baker5c4ce2b2014-07-08 09:35:40 -070064<script src="{% static 'page_analytics.js' %}"></script>
65
Scott Bakera226eb42014-06-09 11:55:26 -070066{% endif %}