Siobhan Tully | cf04fb6 | 2014-01-11 11:25:57 -0500 | [diff] [blame] | 1 | {% extends "admin/base.html" %} |
| 2 | {% load admin_static %} |
| 3 | |
Siobhan Tully | 90040c2 | 2014-01-13 23:47:24 -0500 | [diff] [blame] | 4 | {% block content %} |
Scott Baker | 771819b | 2014-03-19 22:10:17 -0700 | [diff] [blame] | 5 | <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 Tully | e18b344 | 2014-02-23 14:23:34 -0500 | [diff] [blame] | 10 | |
Siobhan Tully | e18b344 | 2014-02-23 14:23:34 -0500 | [diff] [blame] | 11 | <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 Tully | e18b344 | 2014-02-23 14:23:34 -0500 | [diff] [blame] | 14 | |
Scott Baker | 771819b | 2014-03-19 22:10:17 -0700 | [diff] [blame] | 15 | <!-- 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 Baker | cd01397 | 2014-03-27 10:42:16 -0700 | [diff] [blame] | 25 | $( "#hometabs" ).tabs({active: 0, //event: "mouseover" |
Scott Baker | 771819b | 2014-03-19 22:10:17 -0700 | [diff] [blame] | 26 | //collapsible: true |
| 27 | }); |
| 28 | }); |
| 29 | </script> |
Scott Baker | 9416013 | 2014-05-18 18:49:20 -0700 | [diff] [blame^] | 30 | |
| 31 | <script> |
| 32 | var consoleAppender = new log4javascript.BrowserConsoleAppender(); |
| 33 | var patternLayout = new log4javascript.PatternLayout("%d{HH:mm:ss,SSS} %l{s:l} %-5p - %m{1}%n"); |
| 34 | consoleAppender.setLayout(patternLayout); |
| 35 | //var log = log4javascript.getDefaultLogger(); |
| 36 | var log = log4javascript.getRootLogger(); |
| 37 | log.addAppender(consoleAppender); |
| 38 | log.setLevel(log4javascript.Level.ERROR); |
| 39 | </script> |
| 40 | |
Siobhan Tully | e18b344 | 2014-02-23 14:23:34 -0500 | [diff] [blame] | 41 | <script> |
Siobhan Tully | 06d2c03 | 2014-02-23 23:48:52 -0500 | [diff] [blame] | 42 | |
Scott Baker | 771819b | 2014-03-19 22:10:17 -0700 | [diff] [blame] | 43 | function 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 Baker | cd01397 | 2014-03-27 10:42:16 -0700 | [diff] [blame] | 72 | <!-- <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 Baker | 771819b | 2014-03-19 22:10:17 -0700 | [diff] [blame] | 76 | <li><a href="#tabs-2">CDN Operations </a></li> |
| 77 | <li><a href="#tabs-3">Historical</a></li> |
Scott Baker | cd01397 | 2014-03-27 10:42:16 -0700 | [diff] [blame] | 78 | <li><a href="#tabs-4">Slice Interactions</a></li> |
| 79 | <li><a href="#tabs-5">Tenant</a></li> |
Scott Baker | 9416013 | 2014-05-18 18:49:20 -0700 | [diff] [blame^] | 80 | <li><a href="#tabs-6">CDN Nodes</a></lib> |
Scott Baker | 771819b | 2014-03-19 22:10:17 -0700 | [diff] [blame] | 81 | </ul> |
| 82 | <div id="tabs-1"> |
Scott Baker | 9416013 | 2014-05-18 18:49:20 -0700 | [diff] [blame^] | 83 | {% include "/opt/planetstack/templates/admin/dashboard/developer.html" %} |
Scott Baker | 771819b | 2014-03-19 22:10:17 -0700 | [diff] [blame] | 84 | </div> |
| 85 | <div id="tabs-2"> |
Scott Baker | 9416013 | 2014-05-18 18:49:20 -0700 | [diff] [blame^] | 86 | {% include "/opt/planetstack/templates/admin/dashboard/cdnoperations.html" %} |
Scott Baker | 771819b | 2014-03-19 22:10:17 -0700 | [diff] [blame] | 87 | </div> |
| 88 | <div id="tabs-3"> |
| 89 | {% include "/opt/planetstack/templates/admin/dashboard/hpc_historical.html" %} |
| 90 | </div> |
Scott Baker | cd01397 | 2014-03-27 10:42:16 -0700 | [diff] [blame] | 91 | <div id="tabs-4"> |
| 92 | {% include "/opt/planetstack/templates/admin/dashboard/slice_interactions.html" %} |
| 93 | </div> |
| 94 | <div id="tabs-5"> |
Scott Baker | 537d823 | 2014-04-08 23:40:56 -0700 | [diff] [blame] | 95 | {% include "/opt/planetstack/templates/admin/dashboard/tenant.html" %} |
Scott Baker | cd01397 | 2014-03-27 10:42:16 -0700 | [diff] [blame] | 96 | </div> |
Scott Baker | 9416013 | 2014-05-18 18:49:20 -0700 | [diff] [blame^] | 97 | <div id="tabs-6"> |
| 98 | {% include "/opt/planetstack/templates/admin/dashboard/cdn_nodes.html" %} |
| 99 | </div> |
Scott Baker | 771819b | 2014-03-19 22:10:17 -0700 | [diff] [blame] | 100 | </div> |
| 101 | |
Siobhan Tully | 90040c2 | 2014-01-13 23:47:24 -0500 | [diff] [blame] | 102 | {% endblock %} |