gluon-status-page: display position and link it with geo uri scheme (#1587)

Fixes: #659
Signed-off-by: Martin Weinelt <martin@darmstadt.freifunk.net>
This commit is contained in:
Martin Weinelt 2018-11-27 23:16:32 +01:00 committed by Andreas Ziegler
parent 1d2e36dab5
commit bcf4d076e1
3 changed files with 12 additions and 0 deletions

View File

@ -103,6 +103,12 @@
<% if nodeinfo.owner and nodeinfo.owner.contact then -%>
<dt><%:Contact%></dt><dd><%| nodeinfo.owner.contact %></dd>
<%- end %>
<% if nodeinfo.location then -%>
<dt><%:Location%></dt>
<dd><a href="geo:<%| nodeinfo.location.latitude %>,<%| nodeinfo.location.longitude %>">
<%| nodeinfo.location.latitude %>, <%| nodeinfo.location.longitude %>
</a></dd>
<%- end %>
<dt><%:Model%></dt><dd><%| nodeinfo.hardware.model %></dd>
<dt><%:Primary MAC address%></dt><dd><%| nodeinfo.network.mac %></dd>
<dt><%:IP address%></dt><dd><%= pcdata(table.concat(sorted(nodeinfo.network.addresses), '\n')):gsub('\n', '<br />') %></dd>

View File

@ -34,6 +34,9 @@ msgstr "Clients"
msgid "Contact"
msgstr "Kontakt"
msgid "Location"
msgstr "Position"
msgid "Distance"
msgstr "Entfernung"

View File

@ -25,6 +25,9 @@ msgstr ""
msgid "Contact"
msgstr ""
msgid "Location"
msgstr ""
msgid "Distance"
msgstr ""