summaryrefslogtreecommitdiffstats
path: root/health-network-html.lsp
blob: df8ccee7e0eb8cc8fb02234c057781dc229c5ba2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<% local view, viewlibrary, page_info, session = ... %>
<% htmlviewfunctions = require("htmlviewfunctions") %>
<% html = require("acf.html") %>

<%
local header_level = htmlviewfunctions.displaysectionstart(view, page_info)
local header_level2 = htmlviewfunctions.incrementheader(header_level)
%>

<% htmlviewfunctions.displaysectionstart(cfe({label="Interface status"}), page_info, header_level2) %>
<pre><%= html.html_escape(view.value.interfaces.value) %></pre>
<% htmlviewfunctions.displaysectionend(header_level2) %>

<% htmlviewfunctions.displaysectionstart(cfe({label="Routes"}), page_info, header_level2) %>
<pre><%= html.html_escape(view.value.routes.value) %></pre>
<% htmlviewfunctions.displaysectionend(header_level2) %>

<% if view.value.tunnel.value ~= "" then %>
<% htmlviewfunctions.displaysectionstart(cfe({label="Tunnels"}), page_info, header_level2) %>
<pre><%= html.html_escape(view.value.tunnel.value) %></pre>
<% htmlviewfunctions.displaysectionend(header_level2) %>
<% end %>

<% htmlviewfunctions.displaysectionend(header_level) %>