From a9c2fc65b693398ffaf8c59706ee4ca2a1476bc4 Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Wed, 9 Jan 2013 11:22:15 +0000 Subject: modules/freifunk: Add homepage(s) field to contact information --- modules/freifunk/luasrc/view/freifunk/contact.htm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'modules/freifunk/luasrc/view') diff --git a/modules/freifunk/luasrc/view/freifunk/contact.htm b/modules/freifunk/luasrc/view/freifunk/contact.htm index 23a5e7b1af..2d79ccd406 100644 --- a/modules/freifunk/luasrc/view/freifunk/contact.htm +++ b/modules/freifunk/luasrc/view/freifunk/contact.htm @@ -21,10 +21,11 @@ local lon = uci:get_first("system", "system", "longitude") local lat = uci:get_first("system", "system", "latitude") if not contact then - nickname, name, mail, phone, location, note = "" + nickname, name, homepage, mail, phone, location, note = "" else nickname = contact.nickname or "" name = contact.name or "" + homepage = contact.homepage or {} mail = contact.mail or "" phone = contact.phone or "" location = uci:get_first("system", "system", "location") or contact.location @@ -39,6 +40,11 @@ end +
<%:Nickname%>:<%=nickname%>
<%:Realname%>:<%=name%>
<%:Homepage%>: + <% for k, v in ipairs(homepage) do %> + <%=v%>
+ <% end %> +
<%:E-Mail%>:<%=mail%>
<%:Phone%>:<%=phone%>
-- cgit v1.2.3