1 {% extends "base.html" %}
5 <!-- Morris Charts CSS -->
6 <link href="{% static "bower_components/morrisjs/morris.css" %}" rel="stylesheet">
8 <!-- DataTables CSS -->
9 <link href="{% static "bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.css" %}"
12 <!-- DataTables Responsive CSS -->
13 <link href="{% static "bower_components/datatables-responsive/css/dataTables.responsive.css" %}"
15 {% endblock extrahead %}
19 {% for resource, utilization, bookings in pods %}
21 <div class="col-lg-12">
22 <div class="panel panel-default">
23 <div class="panel-heading">
26 <div class="panel-body">
27 {% include "dashboard/resource_detail.html" %}
33 {% endblock content %}
37 <!-- DataTables JavaScript -->
38 <link href="{% static "bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.css" %}"
41 <script src={% static "bower_components/datatables/media/js/jquery.dataTables.min.js" %}></script>
42 <script src={% static "bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.min.js" %}></script>
46 <!-- Flot Charts JavaScript -->
47 <script src="{% static "bower_components/flot/excanvas.min.js" %}"></script>
48 <script src="{% static "bower_components/flot/jquery.flot.js" %}"></script>
49 <script src="{% static "bower_components/flot/jquery.flot.pie.js" %}"></script>
50 <script src="{% static "bower_components/flot/jquery.flot.resize.js" %}"></script>
51 <script src="{% static "bower_components/flot/jquery.flot.time.js" %}"></script>
52 <script src="{% static "bower_components/flot.tooltip/js/jquery.flot.tooltip.min.js" %}"></script>
53 <script src="{% static "js/flot-pie-chart.js" %}"></script><
55 <script type="text/javascript">
56 $(document).ready(function () {
57 {% for resource, utilization, bookings in pods %}
59 $('#{{ resource.id }}_server_table').DataTable({});
60 $('#{{ resource.id }}_bookings_table').DataTable({});
61 $('#{{ resource.id }}_vpn_user_table').DataTable({});
63 var chart_id = "{{ resource.id }}_booking_utilization";
64 var utilization_url = "{% url 'dashboard:booking_utilization' resource_id=resource.id weeks=4 %}";
65 loadChartData(chart_id, utilization_url);
67 var chart_id = "{{ resource.id }}_jenkins_utilization";
68 var utilization_url = "{% url 'dashboard:jenkins_utilization' resource_id=resource.id weeks=1 %}";
69 loadChartData(chart_id, utilization_url);
73 {% endblock extrajs %}