Moved examples out of source directory
[project/luci.git] / src / ffluci / view / header.htm
1 <%
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">
9 <head>
10 <link rel="stylesheet" type="text/css" href="<%=media%>/cascade.css" />
11 <title>FFLuCI</title>
12 </head>
13 <body>
14 <div id="header">
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 />
20 1.2.3.4 - host1
21 </div>
22 <div>
23 <span class="headertitle">Freifunk Kamikaze</span><br />
24 <span class="whitetext bold"><%:batmanedition Fledermausedition%></span>
25 </div>
26 </div>
27
28 <div class="separator yellow bold">
29 <%:path Pfad%>: <a href="<%=controller .. "/" .. req.category%>"><%=req.category%></a>
30 &#187; <a href="<%=controller .. "/" .. req.category .. "/" .. req.module %>"><%=req.module%></a>
31 &#187; <a href="<%=controller .. "/" .. req.category .. "/" .. req.module .. "/" .. req.action %>"><%=req.action%></a>
32 </div>
33
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>
41 <% end %></ul>
42 <% end %></div>
43 <% end %>
44 </div>
45 <div class="sidebar right">
46 <div><%:webif Weboberfläche%>
47 <ul>
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>
50 </ul>
51 </div>
52 <% if "admin" == req.category then %>
53 <div>Konfiguration<ul><li>x Änderungen</li><li>Anwenden</li><li>Zurücksetzen</li></ul></div>
54 <% end %>
55 </div>
56 <div id="content">