X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=themes%2Fopenwrt.org-oxygen%2Fluasrc%2Fview%2Fthemes%2Fopenwrt.org-oxygen%2Fdashboard.htm;fp=themes%2Fopenwrt.org-oxygen%2Fluasrc%2Fview%2Fthemes%2Fopenwrt.org-oxygen%2Fdashboard.htm;h=1e05575809489d3f2f4ad63db684e8dd4e577566;hp=0000000000000000000000000000000000000000;hb=a2d1ca7af0e72c451b31c7a35e13df9583de048e;hpb=cbdc5af52ef0eeae955753ab0a8a0df650027b55 diff --git a/themes/openwrt.org-oxygen/luasrc/view/themes/openwrt.org-oxygen/dashboard.htm b/themes/openwrt.org-oxygen/luasrc/view/themes/openwrt.org-oxygen/dashboard.htm new file mode 100644 index 000000000..1e0557580 --- /dev/null +++ b/themes/openwrt.org-oxygen/luasrc/view/themes/openwrt.org-oxygen/dashboard.htm @@ -0,0 +1,46 @@ +<%# +LuCI - Lua Configuration Interface +Copyright 2008 Steven Barth +Copyright 2008 Jo-Philipp Wich + +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 + +$Id$ + +-%> +<% + local node = luci.dispatcher.context.requested + if node.nodes then +%> +
+<%- + for k, v in luci.util.spairs(node.nodes, function (a,b) + return (node.nodes[a].order or 100) < (node.nodes[b].order or 100) + end) do + if v.title and #v.title > 0 and not v.ignoreindex and (v.index or v.target) then + local csscl = "dashicon di_%s" % (v.style or k) + local iconl = v.icon + local pref = luci.util.clone(luci.dispatcher.context.request) + pref[#pref+1] = k + local target = luci.dispatcher.build_url(unpack(pref)) +%> + +<% + end + end +-%> +
+
+<% +end +%> \ No newline at end of file