3 local load1, load5, load15 = ffluci.sys.loadavg()
4 local req = require("ffluci.dispatcher").request
5 local menu = require("ffluci.menu").get()[req.category]
6 require("ffluci.i18n").loadc("default")
7 require("ffluci.http").htmlheader()
8 %><?xml version="1.0" encoding="utf-8"?>
9 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
10 <html xmlns="http://www.w3.org/1999/xhtml">
12 <link rel="stylesheet" type="text/css" href="<%=media%>/cascade.css" />
13 <link rel="stylesheet" type="text/css" href="<%=media%>/css/<%=req.category%>_<%=req.module%>.css" />
14 <link rel="stylesheet" type="text/css" href="<%=media%>/css/<%=req.category%>_<%=req.module%>/<%=req.action%>.css" />
19 <div class="headerlogo left"><img src="<%=media%>/logo.png" alt="Freifunk" /></div>
20 <div class="whitetext smalltext right">
21 OpenWRT Kamikaze<br />
22 Freifunk Firmware 2.0-dev<br />
23 <%:load Last%>: <%=load1%> <%=load5%> <%=load15%><br />
24 <%:hostname Hostname%>: <%=ffluci.sys.hostname()%>
27 <span class="headertitle">Freifunk Kamikaze</span><br />
28 <span class="whitetext bold"><%:batmanedition Fledermausedition%></span>
32 <div class="separator yellow bold">
33 <%:path Pfad%>: <a href="<%=controller .. "/" .. req.category%>"><%=req.category%></a>
34 » <a href="<%=controller .. "/" .. req.category .. "/" .. req.module %>"><%=req.module%></a>
35 » <a href="<%=controller .. "/" .. req.category .. "/" .. req.module .. "/" .. req.action %>"><%=req.action%></a>
38 <div id="columns"><div id="columnswrapper">
39 <div class="sidebar left">
40 <% for k,v in pairs(menu) do %>
41 <div<% if v[".contr"] == req.module then %> class="yellowtext"<% end %>><a href="<%=controller.."/"..req.category.."/"..v[".contr"]%>"><%=translate(v[".contr"], v[".descr"])%></a><%
42 if v[".contr"] == req.module then %>
43 <ul><% for key,val in ipairs(v) do %>
44 <li<% if val.action == req.action then %> class="yellowtext"<% end %>><a href="<%=controller.."/"..req.category.."/"..req.module.."/"..val.action%>"><%=translate(val.action, val.descr)%></a></li>
49 <div class="sidebar right">
50 <div><%:webif Weboberfläche%>
52 <li<% if "public" == req.category then %> class="yellowtext"<% end %>><a href="<%=controller%>/public"><%:public Public%></a></li>
53 <li<% if "admin" == req.category then %> class="yellowtext"<% end %>><a href="<%=controller%>/admin"><%:admin Admin%></a></li>
56 <% if "admin" == req.category then %>
57 <div>Konfiguration<ul><li>x Änderungen</li><li>Anwenden</li><li>Zurücksetzen</li></ul></div>