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 -%>
|
<% if nodeinfo.owner and nodeinfo.owner.contact then -%>
|
||||||
<dt><%:Contact%></dt><dd><%| nodeinfo.owner.contact %></dd>
|
<dt><%:Contact%></dt><dd><%| nodeinfo.owner.contact %></dd>
|
||||||
<%- end %>
|
<%- 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><%:Model%></dt><dd><%| nodeinfo.hardware.model %></dd>
|
||||||
<dt><%:Primary MAC address%></dt><dd><%| nodeinfo.network.mac %></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>
|
<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"
|
msgid "Contact"
|
||||||
msgstr "Kontakt"
|
msgstr "Kontakt"
|
||||||
|
|
||||||
|
msgid "Location"
|
||||||
|
msgstr "Position"
|
||||||
|
|
||||||
msgid "Distance"
|
msgid "Distance"
|
||||||
msgstr "Entfernung"
|
msgstr "Entfernung"
|
||||||
|
|
||||||
|
@ -25,6 +25,9 @@ msgstr ""
|
|||||||
msgid "Contact"
|
msgid "Contact"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Location"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
msgid "Distance"
|
msgid "Distance"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user