<% -- Copyright 2015 OVH (OverTheBox@ovh.net) -- Simon Lelievre (simon.lelievre@corp.ovh.com) -- Sebastien Duponcheel (sebastien.duponcheel@ovh.net) -- -- This file is part of OverTheBox for OpenWrt. -- -- OverTheBox 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. -- -- OverTheBox 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 OverTheBox. If not, see (http://www.gnu.org/licenses/) -%> <% local uci = require("luci.model.uci").cursor() local device_id = uci:get("overthebox", "me", "device_id") local service_id = uci:get("overthebox", "me", "service") local has_service_confirmation = false if uci:get("overthebox", "me", "needs_activation") == "true" then has_service_confirmation = true end local has_switch = false uci:foreach("network", "switch", function(s) has_switch = true return false end ) %> <%+header%>

<%:OverTheBox overview%>

<%:Activation status%>

"><%:Configuration assistant%> <% if not has_switch then %> #dhcpDesactivateMore"><%:Add a new connection%> <% end %> <% if not service_id then if luci.dispatcher.context.requestpath[#luci.dispatcher.context.requestpath] == "activate" then include("overthebox/activate") else include("overthebox/register") end elseif has_service_confirmation then %> <% include("overthebox/activate") else %>
<% if service_id then %> <% end %>
<%:Device ID%><%=device_id or translate("Registering your device, please wait...")%>
<%:Service name%><%=service_id%>
<% if device_id and service_id then %> <% include("overthebox/dhcpwizard") include("overthebox/wanstatus") include("overthebox/ipv6wizard") include("overthebox/realtimegraphs") include("overthebox/dhcpleases") else %> <% end end %> <%+footer%>