<% local data, viewlibrary = ... %> <% viewlibrary.dispatch_component("status") %>

<%= html.html_escape(data.label) %>

<% if #data.value == 0 then io.write("No alerts found") else for i,priority in ipairs(data.value) do %>

<%= html.html_escape(priority.name) %>

<% for cls in pairs(priority.value) do %>

<%= html.html_escape(cls) %>

<% for id,alert in pairs(priority.value[cls]) do %>

<%= html.html_escape(alert.value[1]) %>
<% for j=2, table.maxn(alert.value) do %> <%= html.html_escape(alert.value[j]) %>
<% end %> (This alarm is repeated <%= html.html_escape(alert.count) %> times) <% if (table.maxn(alert.url) ~= 0) then %> ( URL's: <% for k,url in ipairs(alert.url) do %> <%= html.html_escape(url) %> <% end %> ) <% end %>

<% end %> <% end %> <% end %> <% end %>