2 local req = require(
"ffluci.dispatcher").request
3 local menu = require(
"ffluci.menu").get()[req.category]
4 require(
"ffluci.i18n").loadc(
"default")
5 require(
"ffluci.http").htmlheader()
6 %
><?xml version=
"1.0" encoding=
"utf-8"?>
7 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
8 <html xmlns=
"http://www.w3.org/1999/xhtml">
10 <link rel=
"stylesheet" type=
"text/css" href=
"<%=media%>/cascade.css" />
15 <div class=
"headerlogo left"><img src=
"<%=media%>/logo.png" alt=
"Freifunk" /></div>
16 <div class=
"whitetext smalltext right">
17 OpenWRT Kamikaze
<br />
18 Freifunk Firmware
2.0-dev
<br />
19 Load average:
1.00 2.00 3.00<br />
23 <span class=
"headertitle">Freifunk Kamikaze
</span><br />
24 <span class=
"whitetext bold"><%:batmanedition Fledermausedition%
></span>
28 <div class=
"separator yellow bold">
29 <%:path Pfad%
>:
<a href=
"<%=controller .. "/
" .. req.category%>"><%=req.category%
></a>
30 » <a href=
"<%=controller .. "/
" .. req.category .. "/
" .. req.module %>"><%=req.module%
></a>
31 » <a href=
"<%=controller .. "/
" .. req.category .. "/
" .. req.module .. "/
" .. req.action %>"><%=req.action%
></a>
34 <div id=
"columns"><div id=
"columnswrapper">
35 <div class=
"sidebar left">
36 <% for k,v in pairs(menu) do %
>
37 <div<% if v[
".contr"] == req.module then %
> class=
"yellowtext"<% end %
>><a href=
"<%=controller.."/
"..req.category.."/
"..v[".contr
"]%>"><%=translate(v[
".contr"], v[
".descr"])%
></a><%
38 if v[
".contr"] == req.module then %
>
39 <ul><% for key,val in ipairs(v) do %
>
40 <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>
45 <div class=
"sidebar right">
46 <div><%:webif Weboberfläche%
>
48 <li<% if
"public" == req.category then %
> class=
"yellowtext"<% end %
>><a href=
"<%=controller%>/public"><%:public Public%
></a></li>
49 <li<% if
"admin" == req.category then %
> class=
"yellowtext"<% end %
>><a href=
"<%=controller%>/admin"><%:admin Admin%
></a></li>
52 <% if
"admin" == req.category then %
>
53 <div>Konfiguration
<ul><li>x Änderungen
</li><li>Anwenden
</li><li>Zurücksetzen
</li></ul></div>