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:
parent
1d2e36dab5
commit
bcf4d076e1
@ -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>
|
||||
|
@ -34,6 +34,9 @@ msgstr "Clients"
|
||||
msgid "Contact"
|
||||
msgstr "Kontakt"
|
||||
|
||||
msgid "Location"
|
||||
msgstr "Position"
|
||||
|
||||
msgid "Distance"
|
||||
msgstr "Entfernung"
|
||||
|
||||
|
@ -25,6 +25,9 @@ msgstr ""
|
||||
msgid "Contact"
|
||||
msgstr ""
|
||||
|
||||
msgid "Location"
|
||||
msgstr ""
|
||||
|
||||
msgid "Distance"
|
||||
msgstr ""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user