mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-22 12:06:53 -06:00
Closes #2264: Added "map it" link for site GPS coordinates
This commit is contained in:
parent
64e86013bf
commit
838af2b2d8
@ -181,7 +181,12 @@
|
|||||||
<td>GPS Coordinates</td>
|
<td>GPS Coordinates</td>
|
||||||
<td>
|
<td>
|
||||||
{% if site.latitude and site.longitude %}
|
{% if site.latitude and site.longitude %}
|
||||||
{{ site.latitude }}, {{ site.longitude }}
|
<div class="pull-right">
|
||||||
|
<a href="http://maps.google.com/?q={{ site.latitude }},{{ site.longitude }}" target="_blank" class="btn btn-primary btn-xs">
|
||||||
|
<i class="glyphicon glyphicon-map-marker"></i> Map it
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<span>{{ site.latitude }}, {{ site.longitude }}</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="text-muted">N/A</span>
|
<span class="text-muted">N/A</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user