-
Notifications
You must be signed in to change notification settings - Fork 477
Expand file tree
/
Copy pathhtml_fancy_split_detail.tpl
More file actions
44 lines (36 loc) · 1.22 KB
/
Copy pathhtml_fancy_split_detail.tpl
File metadata and controls
44 lines (36 loc) · 1.22 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
## -*- 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'))
# 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"
%>
<% html_header(host['name'], local_js, res_url, jquery_res_uri, dataTable_res_uri) %>
<% html_header_bar(host['name']) %>
<div id="hosts">
<% html_host_detail(host, collapsed=collapsed, skip_empty=skip_empty, is_split=True) %>
</div>
<% html_footer_bar(version) %>
<script>
$(document).ready( function () {
<% js_ev_collapse() %>
});
//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() %>