<%# Copyright 2014, CZ.NIC z.s.p.o. (http://www.nic.cz/) This file is part of NUCI configuration server. NUCI is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. NUCI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with NUCI. If not, see . -%> <%- local wa = require "luci.tools.webadmin" local ERR_MSG_NO_DATA = translate("No data available") local data_seen = false; -%> <%+header%>

<%:Majordomo - overview%>

<% for _, month_value in ipairs(stats) do %> <% data_seen = true %>

<%:Month%>: <%=month_value.month%><%if month_value.since then %> (<%:since%>: <%=os.date("%Y/%m/%d %H:%M", month_value.since)%>)<% end %>

<% for _, sorted in ipairs(month_value.data) do %> <%- local mac = nil; if make_lookup_mac then mac = macdb:lookup(sorted.key); end -%> <% end %>
<%:Client%> <%:Count (download)%> <%:Packet size (download)%> <%:Payload size (download)%> <%:Count (upload)%> <%:Packet size (upload)%> <%:Payload size (upload)%> <%:Details%>
<% if static_names[sorted.key] then %> <%=static_names[sorted.key]%> <% else %> <%=sorted.key%><% if mac then %> (<%=mac%>)<% end %> <% end %> <%=sorted.value.d_count%> <%=wa.byte_format(sorted.value.d_size)%> <%=wa.byte_format(sorted.value.d_data_size)%> <%=sorted.value.u_count%> <%=wa.byte_format(sorted.value.u_size)%> <%=wa.byte_format(sorted.value.u_data_size)%> "><%:Show details%>
<% end %> <% if not data_seen then %>


<%=ERR_MSG_NO_DATA%>

<% end %> <%+footer%>