diff options
author | Manuel Munz <freifunk@somakoma.de> | 2013-01-09 11:22:15 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2013-01-09 11:22:15 +0000 |
commit | a9c2fc65b693398ffaf8c59706ee4ca2a1476bc4 (patch) | |
tree | 487ef435b96f7d3c867a714aad93b50a479e17f0 /modules/freifunk/luasrc/view | |
parent | f5535cb8045455dae462f408b4817768e5c618a6 (diff) |
modules/freifunk: Add homepage(s) field to contact information
Diffstat (limited to 'modules/freifunk/luasrc/view')
-rw-r--r-- | modules/freifunk/luasrc/view/freifunk/contact.htm | 8 |
1 files changed, 7 insertions, 1 deletions
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 <table cellspacing="10" width="100%" style="text-align:left"> <tr><th width="33%"><%:Nickname%>:</th><td><%=nickname%></td></tr> <tr><th width="33%"><%:Realname%>:</th><td><%=name%></td></tr> + <tr><th width="33%"><%:Homepage%>:</th><td> + <% for k, v in ipairs(homepage) do %> + <a href="<%=v%>"><%=v%></a><br /> + <% end %> + </td></tr> <tr><th width="33%"><%:E-Mail%>:</th><td><a href="mailto:<%=mail%>"><%=mail%></a></td></tr> <tr><th width="33%"><%:Phone%>:</th><td><%=phone%></td></tr> </table> |