treewide: avoid double-escaping CBI section labels
[project/luci.git] / modules / luci-mod-freifunk / luasrc / view / freifunk / contact.htm
1 <%#
2 Copyright 2008 Steven Barth <steven@midlink.org>
3 Copyright 2008 Jo-Philipp Wich <jow@openwrt.org>
4 Copyright 2011 Manuel Munz <freifunk at somakoma dot de>
5 Licensed to the public under the Apache License 2.0.
6 -%>
7
8 <%+header%>
9
10 <%
11 local uci = require "luci.model.uci".cursor()
12 local nickname = uci:get("freifunk", "contact", "nickname") or ""
13 local name = uci:get("freifunk", "contact", "name") or ""
14 local homepage = uci:get("freifunk", "contact", "homepage") or {}
15 local mail = uci:get("freifunk", "contact", "mail") or ""
16 local phone = uci:get("freifunk", "contact", "phone") or ""
17 local location = uci:get_first("system", "system", "locaton") or uci:get("freifunk", "contact", "location") or ""
18 local note = uci:get("freifunk", "contact", "note") or ""
19 local lon = uci:get_first("system", "system", "longitude") or ""
20 local lat = uci:get_first("system", "system", "latitude") or ""
21 %>
22
23 <h2 name="content"><%:Contact%></h2>
24
25 <fieldset xmlns="http://www.w3.org/1999/xhtml" class="cbi-section">
26 <legend><%:Operator%></legend>
27 <div class="table" cellspacing="10" width="100%" style="text-align:left">
28 <div class="tr"><div class="th" width="33%"><%:Nickname%>:</div><div class="td"><%=nickname%></div></div>
29 <div class="tr"><div class="th" width="33%"><%:Realname%>:</div><div class="td"><%=name%></div></div>
30 <div class="tr"><div class="th" width="33%"><%:Homepage%>:</div><div class="td">
31 <% for k, v in ipairs(homepage) do %>
32 <a href="<%=v%>"><%=v%></a><br />
33 <% end %>
34 </div></div>
35 <div class="tr"><div class="th" width="33%"><%:E-Mail%>:</div><div class="td"><a href="mailto:<%=mail%>"><%=mail%></a></div></div>
36 <div class="tr"><div class="th" width="33%"><%:Phone%>:</div><div class="td"><%=phone%></div></div>
37 </div>
38 </fieldset>
39
40 <fieldset xmlns="http://www.w3.org/1999/xhtml" class="cbi-section">
41 <legend><%:Location%></legend>
42 <div class="table" cellspacing="10" width="100%" style="text-align:left">
43 <div class="tr"><div class="th" width="33%"><%:Location%>:</div><div class="td"><%=location%></div></div>
44 <div class="tr"><div class="th" width="33%"><%:Coordinates%>:</div><div class="td"><%=lat%> <%=lon%> (<a href="<%=pcdata(luci.dispatcher.build_url("freifunk/map"))%>"><%:Show on map%>)</a></div></div>
45 </div>
46 </fieldset>
47
48 <% if note then %>
49 <fieldset xmlns="http://www.w3.org/1999/xhtml" class="cbi-section">
50 <legend><%:Notice%></legend>
51 <div class="table" cellspacing="10" width="100%" style="text-align:left">
52 <div class="tr"><div class="td"><%=note%></div></div>
53 </div>
54 </fieldset>
55 <%end%>
56
57 <%+footer%>