Added a note to the Freifunk menu for OpenWRT

modules/admin-mini: Several small fixes and improvements
This commit is contained in:
Steven Barth 2008-07-16 15:19:05 +00:00
parent 66a6492ae5
commit 0a0712b9d9
7 changed files with 11 additions and 6 deletions

View file

@ -61,7 +61,7 @@ endef
define Package/luci/fftemplate define Package/luci/fftemplate
$(call Package/luci/libtemplate) $(call Package/luci/libtemplate)
SUBMENU:=LuCI - Freifunk Support SUBMENU:=LuCI - Freifunk Support (GERMAN ONLY)
DEPENDS:=+luci-mod-freifunk DEPENDS:=+luci-mod-freifunk
endef endef

View file

@ -4,6 +4,8 @@ all = "all"
administration = "Administration" administration = "Administration"
apply = "Apply" apply = "Apply"
basicsettings = "Basic Settings"
changes = "Changes" changes = "Changes"
channel = "Channel" channel = "Channel"
code = "Code" code = "Code"

View file

@ -4,6 +4,8 @@ all = "alle"
administration = "Administration" administration = "Administration"
apply = "Anwenden" apply = "Anwenden"
basicsettings = "Grundeinstellungen"
changes = "Änderungen" changes = "Änderungen"
channel = "Kanal" channel = "Kanal"
code = "Code" code = "Code"

View file

@ -19,6 +19,7 @@ function index()
luci.i18n.loadc("admin-core") luci.i18n.loadc("admin-core")
local i18n = luci.i18n.translate local i18n = luci.i18n.translate
entry({"mini", "network"}, cbi("mini-network/basic"), i18n("network")) entry({"mini", "network"}, alias("mini", "network", "basic"), i18n("network"), 20)
entry({"mini", "network", "dhcp"}, cbi("mini-network/dhcp"), "DHCP", 10) entry({"mini", "network", "basic"}, cbi("mini-network/basic"), i18n("basicsettings"), 10)
entry({"mini", "network", "dhcp"}, cbi("mini-network/dhcp"), "DHCP", 20)
end end

View file

@ -20,7 +20,7 @@ function index()
local i18n = luci.i18n.translate local i18n = luci.i18n.translate
entry({"mini", "system"}, call("action_reboot"), i18n("system")) entry({"mini", "system"}, call("action_reboot"), i18n("system"))
entry({"admin", "system", "passwd"}, call("action_passwd"), i18n("a_s_changepw"), 10) entry({"mini", "system", "passwd"}, call("action_passwd"), i18n("a_s_changepw"), 10)
entry({"mini", "system", "upgrade"}, call("action_upgrade"), i18n("a_s_flash"), 20) entry({"mini", "system", "upgrade"}, call("action_upgrade"), i18n("a_s_flash"), 20)
entry({"mini", "system", "reboot"}, call("action_reboot"), i18n("reboot"), 30) entry({"mini", "system", "reboot"}, call("action_reboot"), i18n("reboot"), 30)
end end

View file

@ -27,7 +27,7 @@ $Id$
<% end %> <% end %>
<% end %> <% end %>
<% if not stat or stat == 10 then %> <% if not stat or stat == 10 then %>
<form method="post" action="<%=controller%>/admin/system/passwd"> <form method="post" action="<%=REQUEST_URI%>">
<div class="cbi-section-node"> <div class="cbi-section-node">
<div class="cbi-value"> <div class="cbi-value">
<div class="cbi-value-title"><%:password%></div> <div class="cbi-value-title"><%:password%></div>

View file

@ -25,7 +25,7 @@ if c and next(c) then
end end
if not reboot then if not reboot then
-%> -%>
<p><a href="<%=controller%>/admin/system/reboot?reboot=1"><%:a_s_reboot_do%></a></p> <p><a href="<%=REQUEST_URI%>?reboot=1"><%:a_s_reboot_do%></a></p>
<%- else -%> <%- else -%>
<p><%:a_s_reboot_running%></p> <p><%:a_s_reboot_running%></p>
<script type="text/javascript">setTimeout("location='<%=controller%>/admin'", 60000)</script> <script type="text/javascript">setTimeout("location='<%=controller%>/admin'", 60000)</script>