blob: 49dd4b7072edcd67837b460054b7869583cc7a33 [file] [log] [blame]
Siobhan Tullycf04fb62014-01-11 11:25:57 -05001{% extends "admin/base.html" %}
2{% load admin_static %}
3
Siobhan Tully90040c22014-01-13 23:47:24 -05004{% block content %}
Scott Baker771819b2014-03-19 22:10:17 -07005<link rel="stylesheet" href="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.0/css/jquery.dataTables.css">
6<link rel="stylesheet" type="text/css" href="{% static 'suit/css/suit.css' %}" media="all">
7<link rel="stylesheet" type="text/css" href="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.0/css/jquery.dataTables_themeroller.css">
8<link rel="stylesheet" type="text/css" href="{% static 'planetstack.css' %}" media="all">
9<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
Siobhan Tullye18b3442014-02-23 14:23:34 -050010
Siobhan Tullye18b3442014-02-23 14:23:34 -050011<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.css" />
12<script src="http://cdn.leafletjs.com/leaflet-0.7.2/leaflet.js"></script>
13
Siobhan Tullye18b3442014-02-23 14:23:34 -050014
Scott Baker771819b2014-03-19 22:10:17 -070015<!-- no need to include jquery here as it's already included by base.html. Including it multiple times will break mtuity statistics. -->
16<!-- src="http://code.jquery.com/jquery-1.9.1.js" -->
17
18<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
19<script src="http://ajax.aspnetcdn.com/ajax/jquery.dataTables/1.9.4/jquery.dataTables.min.js"></script>
20<script type="text/javascript" src="{% static 'log4javascript-1.4.6/log4javascript.js' %}"></script>
21<script src="{% static 'js/Leaflet.MakiMarkers.js' %}" > </script>
22
23<script>
24 $(function() {
Scott Bakercd013972014-03-27 10:42:16 -070025 $( "#hometabs" ).tabs({active: 0, //event: "mouseover"
Scott Baker771819b2014-03-19 22:10:17 -070026 //collapsible: true
27 });
28 });
29</script>
Scott Baker94160132014-05-18 18:49:20 -070030
31<script>
32var consoleAppender = new log4javascript.BrowserConsoleAppender();
33var patternLayout = new log4javascript.PatternLayout("%d{HH:mm:ss,SSS} %l{s:l} %-5p - %m{1}%n");
34consoleAppender.setLayout(patternLayout);
35//var log = log4javascript.getDefaultLogger();
36var log = log4javascript.getRootLogger();
37log.addAppender(consoleAppender);
38log.setLevel(log4javascript.Level.ERROR);
39</script>
40
Siobhan Tullye18b3442014-02-23 14:23:34 -050041<script>
Siobhan Tully06d2c032014-02-23 23:48:52 -050042
Scott Baker771819b2014-03-19 22:10:17 -070043function confirmDialog(title,msg) {
44 var dialog = $('<div>'+msg+'</div>');
45 var def = $.Deferred();
46
47 $(dialog).dialog({
48 resizable: false,
49 title: title,
50 autoOpen: true,
51 modal: true,
52 dialogClass: "dashboard-hpc-sliver",
53 buttons: {
54 'OK': function() {
55 def.resolve();
56 log.debug("Chose to add a sliver");
57 $( this ).dialog( "close" );
58 },
59 'Cancel': function() {
60 def.reject();
61 $( this ).dialog( "close" );
62 }
63 },
64 close: {
65 }
66 });
67 return def.promise();
68}
69
70 </script>
71
Scott Bakercd013972014-03-27 10:42:16 -070072<!-- <div id="hometabs" class="inner-center-column ui-tabs ui-widget ui-widget-content ui-corner-all"> -->
73<div id="hometabs" >
74 <ul id="suit_form_tabs" class="nav nav-tabs nav-tabs-suit" data-tab-prefix="suit-tab">
75 <li><a href="#tabs-1">Developer View</a></li>
Scott Baker771819b2014-03-19 22:10:17 -070076 <li><a href="#tabs-2">CDN Operations </a></li>
77 <li><a href="#tabs-3">Historical</a></li>
Scott Bakercd013972014-03-27 10:42:16 -070078 <li><a href="#tabs-4">Slice Interactions</a></li>
79 <li><a href="#tabs-5">Tenant</a></li>
Scott Baker94160132014-05-18 18:49:20 -070080 <li><a href="#tabs-6">CDN Nodes</a></lib>
Scott Baker771819b2014-03-19 22:10:17 -070081 </ul>
82<div id="tabs-1">
Scott Baker94160132014-05-18 18:49:20 -070083{% include "/opt/planetstack/templates/admin/dashboard/developer.html" %}
Scott Baker771819b2014-03-19 22:10:17 -070084</div>
85<div id="tabs-2">
Scott Baker94160132014-05-18 18:49:20 -070086{% include "/opt/planetstack/templates/admin/dashboard/cdnoperations.html" %}
Scott Baker771819b2014-03-19 22:10:17 -070087</div>
88<div id="tabs-3">
89{% include "/opt/planetstack/templates/admin/dashboard/hpc_historical.html" %}
90</div>
Scott Bakercd013972014-03-27 10:42:16 -070091<div id="tabs-4">
92{% include "/opt/planetstack/templates/admin/dashboard/slice_interactions.html" %}
93</div>
94<div id="tabs-5">
Scott Baker537d8232014-04-08 23:40:56 -070095{% include "/opt/planetstack/templates/admin/dashboard/tenant.html" %}
Scott Bakercd013972014-03-27 10:42:16 -070096</div>
Scott Baker94160132014-05-18 18:49:20 -070097<div id="tabs-6">
98{% include "/opt/planetstack/templates/admin/dashboard/cdn_nodes.html" %}
99</div>
Scott Baker771819b2014-03-19 22:10:17 -0700100</div>
101
Siobhan Tully90040c22014-01-13 23:47:24 -0500102{% endblock %}