<%# Copyright 2008 Steven Barth Copyright 2008 Jo-Philipp Wich Copyright 2011 Manuel Munz Licensed to the public under the Apache License 2.0. -%> <%+header%> <% local uci = require "luci.model.uci".cursor() local nickname = uci:get("freifunk", "contact", "nickname") or "" local name = uci:get("freifunk", "contact", "name") or "" local homepage = uci:get("freifunk", "contact", "homepage") or {} local mail = uci:get("freifunk", "contact", "mail") or "" local phone = uci:get("freifunk", "contact", "phone") or "" local location = uci:get_first("system", "system", "locaton") or uci:get("freifunk", "contact", "location") or "" local note = uci:get("freifunk", "contact", "note") or "" local lon = uci:get_first("system", "system", "longitude") or "" local lat = uci:get_first("system", "system", "latitude") or "" %>

<%:Contact%>

<%:Operator%>
<%:Nickname%>:
<%=nickname%>
<%:Realname%>:
<%=name%>
<%:Homepage%>:
<% for k, v in ipairs(homepage) do %> <%=v%>
<% end %>
<%:E-Mail%>:
<%:Phone%>:
<%=phone%>
<%:Location%>
<%:Location%>:
<%=location%>
<%:Coordinates%>:
<%=lat%> <%=lon%> ("><%:Show on map%>)
<% if note then %>
<%:Notice%>
<%=note%>
<%end%> <%+footer%>