<%# Opennet Firmware Copyright 2015 Lars Kruse Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -%> <%+header%> <% require("luci.model.opennet.funcs") require("luci.model.opennet.urls") repo_url = on_function("get_default_opennet_opkg_repository_url") configured_repo_url = on_function("get_configured_opennet_opkg_repository_url") function checked_if_true(value) if value then return 'checked="checked"' else return "" end end %> <% if not on_bool_function("has_opennet_dns") then %>

<%:Opennet-DNS service is not available, yet (or quite slow). It is required for many features.%>

<%:Please verify that you are connected to the network. Opennet-DNS should be available a few minutes after connecting to the Opennet mesh network.%>

<%= luci.i18n.translatef('Take a look at the Status page and verify that you are connected to at least one neighbour.', on_url("status")) %>

<% end %> <% -- alle Module mit uebersetzbarer Beschreibung sollten hier aufgelistet werden -- Module, die hier fehlen, werden ohne Beschreibungstext angezeigt local on_module_descriptions = {} on_module_descriptions["on-openvpn"] = luci.i18n.translate("Access the Internet") on_module_descriptions["on-usergw"] = luci.i18n.translate("Share your local internet connection with other members") on_module_descriptions["on-captive-portal"] = luci.i18n.translate("Provide unrestricted internet access via Opennet to your vicinity") on_module_descriptions["on-monitoring"] = luci.i18n.translate("Publish statistical data of network usage") on_module_descriptions["on-goodies"] = luci.i18n.translate("Useful tools for network and system analysis") on_module_descriptions["on-olsr2"] = luci.i18n.translate("Experimental support for OLSRv2 and IPv6") on_module_descriptions["on-olsr2-netjsongraph"] = luci.i18n.translate("Experimental Visualization for OLSRv2") %>

<%:Modules and Features%>

<%= html_display_message_list(on_errors, "error") %> <%= html_display_message_list(on_hints, "info") %>
<%:Status of Modules%>
<%:The Opennet Firmware consists of multiple modules providing distinct features within the network. Please pick which features should be enabled for this device.%>
<%:Installation of modules may take quite a while (up to 30s) - please be patient.%>
<% for _, mod_name in ipairs(line_split(on_function("get_on_modules"))) do local is_installed = on_bool_function("is_package_installed", { mod_name }) local is_enabled = on_bool_function("is_on_module_installed_and_enabled", { mod_name }) local action_label local action_url %> <% end %>
<%:Name%> <%:Installed%> <%:Enabled%> <%:Action%> <%:Description%>
<%= mod_name %> " /> <%= is_installed and "" or 'disabled="disabled"' %> /> <% if is_installed then action_label = "remove" action_url = REQUEST_URI .. "?remove=" .. mod_name else action_label = "install" action_url = REQUEST_URI .. "?install=" .. mod_name end %> <%= action_label %> <%= on_module_descriptions[mod_name] or mod_name %>
<%:Package Sources%>
<%:Choose your preferred source of packages depending on your network connection.%>
/>
/>
<% if not is_string_empty(modules_log) then %>
<%:Package Installation Protocol%>
<%:Review the details of installations and removals.%>
<% end %>
<%+footer%>