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 {% include "dashboard/resource_detail.html" %}
20 {% endblock content %}
24 <!-- DataTables JavaScript -->
25 <link href="{% static "bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.css" %}"
28 <script src={% static "bower_components/datatables/media/js/jquery.dataTables.min.js" %}></script>
29 <script src={% static "bower_components/datatables-plugins/integration/bootstrap/3/dataTables.bootstrap.min.js" %}></script>
33 <!-- Flot Charts JavaScript -->
34 <script src="{% static "bower_components/flot/excanvas.min.js" %}"></script>
35 <script src="{% static "bower_components/flot/jquery.flot.js" %}"></script>
36 <script src="{% static "bower_components/flot/jquery.flot.pie.js" %}"></script>
37 <script src="{% static "bower_components/flot/jquery.flot.resize.js" %}"></script>
38 <script src="{% static "bower_components/flot/jquery.flot.time.js" %}"></script>
39 <script src="{% static "bower_components/flot.tooltip/js/jquery.flot.tooltip.min.js" %}"></script>
41 <script src="{% static "js/flot-pie-chart.js" %}"></script>
43 <script type="text/javascript">
44 $(document).ready(function () {
45 $('#{{ resource.id }}_server_table').DataTable({});
46 $('#{{ resource.id }}_bookings_table').DataTable({});
47 $('#{{ resource.id }}_vpn_user_table').DataTable({});
49 var chart_id = "{{ resource.id }}_booking_utilization";
50 var utilization_url = "{% url 'dashboard:booking_utilization' resource_id=resource.id weeks=4 %}";
51 loadChartData(chart_id, utilization_url);
53 var chart_id = "{{ resource.id }}_jenkins_utilization";
54 var utilization_url = "{% url 'dashboard:jenkins_utilization' resource_id=resource.id weeks=1 %}";
55 loadChartData(chart_id, utilization_url);
58 {% endblock extrajs %}