5 Copyright (c) 2017 Rajesh Kudaka <4k.rajesh@gmail.com>
6 Copyright (c) 2018 Intel Corporation.
8 All rights reserved. This program and the accompanying materials
9 are made available under the terms of the Apache License, Version 2.0
10 which accompanies this distribution, and is available at
11 http://www.apache.org/licenses/LICENSE-2.0
15 <meta charset="utf-8">
16 <meta name="viewport" content="width=device-width, initial-scale=1">
17 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
18 <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jstree/3.3.7/themes/default/style.min.css">
19 <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
20 <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
21 <script src="https://cdnjs.cloudflare.com/ajax/libs/jstree/3.3.7/jstree.min.js"></script>
22 <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.bundle.min.js"></script>
24 {% include 'nsb_report.css' %}
27 {% include 'nsb_report.js' %}
32 <div class="container-fluid">
35 Testcase: {{report_meta.testcase}}<br>
36 Task-ID: {{report_meta.task_id}}<br>
40 <div class="col-md-2">
41 <div id="divTree"></div>
43 <div class="col-md-10">
44 <canvas id="cnvGraph"></canvas>
48 <div class="col-md-12 table-responsive">
49 <table id="tblMetrics" class="table table-condensed table-hover"></table>
55 // Injected metrics, timestamps, keys and hierarchy
56 var report_data = {{report_data|safe}};
57 var report_time = {{report_time|safe}};
58 var report_keys = {{report_keys|safe}};
59 var report_tree = {{report_tree|safe}};
61 // Wait for DOM to be loaded
63 var tblMetrics = $('#tblMetrics');
64 var cnvGraph = $('#cnvGraph');
65 var divTree = $('#divTree');
67 create_table(tblMetrics, report_data, report_time, report_keys);
68 var objGraph = create_graph(cnvGraph, report_time);
69 create_tree(divTree, report_tree);
70 handle_tree(divTree, tblMetrics, objGraph, report_data, report_time);