X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=modules%2Ffreifunk%2Fluasrc%2Fview%2Ffreifunk%2Fcontact.htm;h=0d917ad5b674cf2a5548cadaab702c0242cc8679;hb=5a1e9354b41155b9604362c9a1ef8d7a899ba2b2;hp=3596827cfd97f7835f54fcd365ea96f69f97a8f7;hpb=922f92cd7df28d8ccc396cd13392b8469c34c88a;p=project%2Fluci.git diff --git a/modules/freifunk/luasrc/view/freifunk/contact.htm b/modules/freifunk/luasrc/view/freifunk/contact.htm index 3596827cf..0d917ad5b 100644 --- a/modules/freifunk/luasrc/view/freifunk/contact.htm +++ b/modules/freifunk/luasrc/view/freifunk/contact.htm @@ -13,15 +13,23 @@ $Id$ -%> <%+header%> -<% local contact = luci.model.uci.cursor():get_all("freifunk", "contact") %> -

<%:contact%>

+ +<% +local uci = require "luci.model.uci".cursor() +local contact = uci:get_all("freifunk", "contact") +local location = uci:get_first("system", "system", "location") +local lon = uci:get_first("system", "system", "longitude") +local lat = uci:get_first("system", "system", "latitude") +%> + +

<%:Contact%>

- - - - - - - + + + + + + +
<%:ff_nickname%>:<%=contact.nickname%>
<%:ff_name%>:<%=contact.name%>
<%:ff_mail%>:<%=contact.mail%>
<%:ff_phone%>:<%=contact.phone%>
<%:ff_location%>:<%=contact.location%>
<%:ff_geocoord%>:<%=contact.geo%>
<%:ff_note%>:<%=contact.note%>
<%:Nickname%>:<%=contact.nickname%>
<%:Realname%>:<%=contact.name%>
<%:E-Mail%>:<%=contact.mail%>
<%:Phone%>:<%=contact.phone%>
<%:Location%>:<%=location%>
<%:Coordinates%>:<%=lat%> <%=lon%>
<%:Notice%>:<%=contact.note%>
<%+footer%>