-
Notifications
You must be signed in to change notification settings - Fork 477
Expand file tree
/
Copy pathhtml_fancy_split_overview.tpl
More file actions
54 lines (47 loc) · 1.7 KB
/
Copy pathhtml_fancy_split_overview.tpl
File metadata and controls
54 lines (47 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
## -*- coding: utf-8 -*-
<%! from ansiblecmdb.util import to_bool %>
<%! import os %>
<%namespace name="defs" file="/html_fancy_defs.html" import="*" />
<%
# Default parameter values
local_js = to_bool(context.get('local_js', '0'))
collapsed = to_bool(context.get('collapsed', '0'))
host_details = to_bool(context.get('host_details', '1'))
skip_empty = to_bool(context.get('skip_empty', '0'))
# Get column definitions from html_fancy_defs.html
cols = var_cols(columns, exclude_columns)
# Extend default columns with custom columns
cols.extend(cust_cols)
# Set the Javascript resource URL (local disk or CDN)
if local_js is False:
res_url = os.getenv('STATIC_ROOT_URL', ".")
jquery_res_uri = os.getenv('JQUERY_RES_URI', "js/jquery-1.10.2.min.js")
dataTable_res_uri = os.getenv('DATATABLE_RES_URI', "js/jquery.dataTables.js")
else:
res_url = "."
jquery_res_uri = "js/jquery-1.10.2.min.js"
dataTable_res_uri = "js/jquery.dataTables.js"
# Set the link type for the host overview table's 'host' column (the link that
# takes you to the host details).
link_type = "external"
if host_details is False:
link_type = "none"
%>
<% html_header("Ansible Overview", local_js, res_url, jquery_res_uri, dataTable_res_uri) %>
<% html_header_bar("Host overview") %>
<% html_col_toggles(cols) %>
<% html_host_overview(cols, hosts, skip_empty=skip_empty, link_type=link_type) %>
<script>
$(document).ready( function () {
<% js_init_host_overview(cols) %>
<% js_ev_collapse() %>
});
<% js_export_to_csv() %>
//paste this code under the head tag or in a separate js file.
// Wait for window load
$(window).load(function() {
// Animate loader off screen
$(".se-pre-con").fadeOut("slow");;
});
</script>
<% html_footer() %>